Hihi, I am new to programming with GLUT, but I now need to develop a program based on GLUT, using DJGPP. I have downloaded the Mesa GLUT and have included the gl\glut.h in the main .cpp file. Here are the details:
main source: test.cpp
class: test_class.cpp, test_class.h
after I have:
gcc -c test.cpp
gcc -c test_class.cpp
then I type:
gcc -o test.exe test.o test_class.o -lglut32 -lGLU32 -lOpenGL32
then the compiler(ld.exe) complains that the file “-lglut32” was not found.
I have tried something like: -lglut -lMesaGLU, etc…but the result is the same.
I have copied the glut32.lib, GLU32.lib and OpenGL32.lib into the compiler’s library directory already, how come it cannot be linked? Can someone help me???
Thanks in advance!!!