View Full Version : Need help getting glut program to build

09-19-2000, 11:52 AM
Hello, I am new to open gl and I am trying to make a very simple program but I keep getting this error:
LINK : fatal error LNK1104: cannot open file "glut32.lib"
Error executing link.exe.

test.exe - 1 error(s), 0 warning(s)

Can anyone help?


09-19-2000, 12:02 PM
assuming you have glut32.lib you have to put it in a directory that vc++ will find it
what I usually do is put it in


and then go to (in vc)

tool->options->Directories tab->Library files combo selection and add c:\usr\lib\ to it

while you are at it I usually put opengl32.lib and glu32.lib in there too

and I also add a directory for executable files c:\usr\bin\

and put the opengl/glut dll's in there and

I add a directory for header files (include)
at c:\usr\include\

and put gl/glut.h in there

hope this helps http://www.opengl.org/discussion_boards/ubb/smile.gif

09-19-2000, 12:23 PM
I don't think I have glut32.lib, where can I get it?

09-19-2000, 12:44 PM
here (for windows)http://www.xmission.com/~nate/glut/glut-3.7.2-dlls.zip

otherwise look thorough here and under the downloads tab of this site (www.opengl.org)

09-19-2000, 12:49 PM
Ok I got them, but now I get this:

C:\Program Files\DevStudio\VC\LIB\glut32.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x3924edc9
Error executing link.exe.

test.exe - 1 error(s), 0 warning(s)

any ideas?

09-19-2000, 12:53 PM
what compiler you using

09-19-2000, 12:54 PM
sorry, where did you get the .lib it may be damaged

09-19-2000, 01:00 PM
I'm using VC++ 5.0, I got it from the link you posted

09-19-2000, 01:04 PM
this one


09-19-2000, 01:06 PM
try this one?

09-19-2000, 01:09 PM
that last one worked! thanks for the help!

09-19-2000, 01:12 PM
sorry about the bad link earlier http://www.opengl.org/discussion_boards/ubb/smile.gif
Have fun http://www.opengl.org/discussion_boards/ubb/biggrin.gif