cyclopentane
10-09-2003, 08:34 PM
I believe that I have everything installed already in order to compile my code. I am running Mandrake 8.1. I am able to compile my code no problem on some school machines. I don't know if I am compiling incorrectly or what. I used the command:
g++ -o checker checker.cpp -L/soft/X11R6.3/lib -lGL -lGLU -lglut -lX11
This allowed me to compile my code no problem. Well I know that the GL library is located in a different place on my computer. It is at /usr/X11R6. So I have tried the command:
g++ -o checker checker.cpp -L/usr/X11R6/lib -lGL -lGLU -lglut -lX11
However I get an error when I try this command. I am not sure what to do or if I am doing everything right. The error I receive is:
/usr/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status
Any help would be greatly appreciated. Thanks to anyone that can help.
Pete
g++ -o checker checker.cpp -L/soft/X11R6.3/lib -lGL -lGLU -lglut -lX11
This allowed me to compile my code no problem. Well I know that the GL library is located in a different place on my computer. It is at /usr/X11R6. So I have tried the command:
g++ -o checker checker.cpp -L/usr/X11R6/lib -lGL -lGLU -lglut -lX11
However I get an error when I try this command. I am not sure what to do or if I am doing everything right. The error I receive is:
/usr/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status
Any help would be greatly appreciated. Thanks to anyone that can help.
Pete