PDA

View Full Version : glut32.lib CreateWindow



03-16-2005, 11:59 AM
Hi.
I just started with OpenGl, and I tried to compile some code (just drawing a rectangle).
The program uses only glut.h.
I get this error when compiling the project:

GLRect.obj : error LNK2001: unresolved external symbol ___glutCreateWindowWithExit@8
Release/GLRect.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

The project also comes with an executable and it works.
So perhaps I have the wrong glut32.lib ?

jide
03-16-2005, 12:32 PM
The OpenGL under windows forum seems more appropriate for your request.

bulldogs
03-16-2005, 05:15 PM
yeah i think this should be in the windows section too ....anyway it sounds like you are not linking against glut32.lib, what are you using devc++, MS vis c++ 6/7.x????

daedalus002
03-17-2005, 07:06 AM
I extracted another glut32.lib in the lib dir (VC 6.0) and now it works fine.