PDA

View Full Version : glut/gluLookAt( )



12-10-2004, 09:14 PM
Good morning,
I'm using opengl in a visualC++ 6.0 program for the graphics part. I've been trying to use gluLookAt( ) to change the viewpoint and orient the camera but I'm getting an "unresolved external" error. When I include <gl/glut.h> in header I get fatal error " cannot include...". Do you know what I must do to be able to include glut and hence use gluLookAt( )?
Thanks & Regards,
Roshan.

def
12-11-2004, 08:34 AM
you need to include "gl/GLU.h" and link with GLU32.lib.

GLUT (not GLU) is a separate library, to use GLUT download the distribution for windows here:
http://www.xmission.com/~nate/glut.html
The README explains where to copy the files so that Visual C++ will find it.

12-14-2004, 10:46 PM
Thanks Def,
I've been able to download glut fromthat site you gave and gluLookAt() is now working. Thanks a lot.