Need help getting glut program to build

Hello, I am new to open gl and I am trying to make a very simple program but I keep getting this error:
Linking…
LINK : fatal error LNK1104: cannot open file “glut32.lib”
Error executing link.exe.

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

Can anyone help?

Thanks

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

c:\usr\lib…

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

I don’t think I have glut32.lib, where can I get it?

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)
http://reality.sgi.com/opengl/glut3/glut3.html

Ok I got them, but now I get this:

Linking…
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?

what compiler you using

sorry, where did you get the .lib it may be damaged

I’m using VC++ 5.0, I got it from the link you posted

this one

 [http://www.xmission.com/~nate/glut/glut-3.7.2-dlls.zip](http://www.xmission.com/~nate/glut/glut-3.7.2-dlls.zip)

try this one?
http://reality.sgi.com/opengl/glut3/glutdlls37beta.zip

that last one worked! thanks for the help!

sorry about the bad link earlier
Have fun