PDA

View Full Version : glut problems...



07-15-2002, 10:29 PM
i have a problem:
i have followed the oreders on : http://3dcoders.bugpower.ch/gluttut.htm
and steel, the compiler (which goes with the dev c++ 4) gives me linker errors:
c:\ \untitled1.o(.text+0x17):untitled1.cpp: undefined reference to `__glutInitWithExit@12'
c:\ \untitled1.o(.text+0x3b):untitled1.cpp: undefined reference to `__glutCreateWindowWithExit@8'
c:\ \untitled1.o(.text+0x67):untitled1.cpp: undefined reference to `__glutCreateMenuWithExit@8'

dont mind the russian words, what do i do?
thanks.

Bob
07-16-2002, 02:34 AM
The solution is, if I remember correct, to put #define GLUT_DISABLE_ATEXIT_HACK before you include the GLUT header.

07-16-2002, 09:02 AM
thank u so much, u r a life saviour.... http://www.opengl.org/discussion_boards/ubb/smile.gif