Advertisement

undefined reference to.....

Started by June 09, 2003 12:53 PM
2 comments, last by Noctu 21 years, 8 months ago
''OMG'' everyone thinks, another person who didnt link the files properly, well for as far as i know i linked them all the right way with -lopengl32 -lglaux -lglu32 -lglut32 and put the .lib and .h files in their folder but when i compile the code i get these 3 errors. i tried it with both the code from some of the Nehe tutorials (with ofcourse the GLUT version) and the first real example code from the red book. i didnt find any solutions using google or gamedev search. c:\documents and settings\m.jansen\desktop\5glut\untitled1.o(.text+0x17):untitled1.cpp: undefined reference to `__glutInitWithExit@12'' c:\documents and settings\m.jansen\desktop\5glut\untitled1.o(.text+0x3b):untitled1.cpp: undefined reference to `__glutCreateWindowWithExit@8'' c:\documents and settings\m.jansen\desktop\5glut\untitled1.o(.text+0x67):untitled1.cpp: undefined reference to `__glutCreateMenuWithExit@8'' i use dev-c++, i first used version 5 but since i got these errors i tried to do it with dev-c++ 4 because 1.5 years ago i got it succesfull compiled with. Please someone point me to the solution because this is bothering me all this day and its really starting to piss me of =(
What version of the GLUT are you using?

[twitter]warrenm[/twitter]

Advertisement
the newest, 3.7
uhm NM, some guys at irc.enterthegame.com adviced me SDL so i ill take a look at that....

This topic is closed to new replies.

Advertisement