well i remember getting this problem, am not sure how its solved tho... did u include acknex,h and default.c ? because ur main function seems ok