What do I need to set up to compile a glut program in Dev-C++?
In the Dev-C++ distribution, I find lib/libopengl32.a, lib/libglut.a, and lib/libglut32.a.
There is also an include/gl directory which contains OpenGL include files but not glut.h.
I'm trying to compile a linux/unix OpenGL program, and I'm using a glut.h file that I downloaded from somewhere else. All the glut commands come up as linker errors "undefined reference".
The result is the same whether or not I include "-lglut32" under Project > Project Options > Parameters > Linker.
My best guess is that the .h file has declarations that don't match the compiled library file.
Can anyone tell me where to get a glut.h file that will work with Dev-C++'s glut libraries?
Or is there something else I need to do?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is a rhetorical question so no one needs to answer. Why is glut.h not included with Dev-C++? If the library it refrences is included (libglut32.a)?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What do I need to set up to compile a glut program in Dev-C++?
In the Dev-C++ distribution, I find lib/libopengl32.a, lib/libglut.a, and lib/libglut32.a.
There is also an include/gl directory which contains OpenGL include files but not glut.h.
I'm trying to compile a linux/unix OpenGL program, and I'm using a glut.h file that I downloaded from somewhere else. All the glut commands come up as linker errors "undefined reference".
The result is the same whether or not I include "-lglut32" under Project > Project Options > Parameters > Linker.
My best guess is that the .h file has declarations that don't match the compiled library file.
Can anyone tell me where to get a glut.h file that will work with Dev-C++'s glut libraries?
Or is there something else I need to do?
Thanks!
Ok, now that I've posted this I see that there are OpenGL answers in the read-me-first posting.
Thanks. This looks good!
This is a rhetorical question so no one needs to answer. Why is glut.h not included with Dev-C++? If the library it refrences is included (libglut32.a)?