PDA

View Full Version : I can't compile with Glut installed



HKSDU
10-26-2002, 10:49 AM
I installed Glut but when I compiled, it shows this:

C:\MinGW\bin>gcc depth.c -lgl -lglut32 -lopengl32
.\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lgl

I got my glut.dll in c:\windows\system, my glut.h in c:\mingw\include\gl, but it doesn't work. Please help. Many thanks.

neilw
10-29-2002, 12:59 AM
-lgl32 ?

newt
10-31-2002, 03:40 AM
-lGL

shellyk
11-01-2002, 05:44 AM
Try leaving out the -lgl altogether - I had the same problem and as it turned out, my programs didn't need the gl library.