Anyone managing to use GLUT with a free compiler under Windows?
I’m getting the following sort of errors no matter the compiler :
d:\myopengl\hello\main.o(.text+0x17):main.c: undefined reference to __glutInitWithExit' d:\myopengl\hello\main.o(.text+0x33):main.c: undefined reference to __glutCreateWindowWithExit’
d:\myopengl\hello\main.o(.text+0x57):main.c: undefined reference to __glutCreateMenuWithExit' d:\myopengl\hello\main.o(.text+0x81):main.c: undefined reference to _imp__glClear’
I can compile standard OpenGL programs without problems from the Dev-C++ 4 IDE (Cygwin compiler) but get the error above with a GLUT/OpenGL program I know to be working.
I have not personally tested it, but I doubt that the glut32.lib you get from the xmission page will work with your compiler since it is made for VisualStudio.
You would have to find out how to make the glut32.lib with your compiler so that you can then link it…
I can compile standard OpenGL programs without problems from the Dev-C++ 4 IDE (Cygwin compiler) but get the error above with a GLUT/OpenGL program I know to be working.