PDA

View Full Version : First hurdle



gregor27
05-28-2001, 08:12 AM
This is a really simple question I'm sure - How do I set up C++ with GLUT?
At the moment I have
#include <GL/glut.h>
at the top of my C++ code, but I get a link error when it fails to find it. I've substituted "glut.h" for "glu.h" and "gl.h" which are definetely in the GL folder, but then I get other errors. I also have #include <windows.h> included at the top. Could someone just tell me breifly what to do. The book I'm using just assumes it's alll set up and ready.

05-28-2001, 09:23 AM
did you put the glut.h in the include\GL\
folder?

gregor27
05-28-2001, 12:53 PM
Okay - I put glut.h in INCLUDE\GL
I put glut32.lib in LIB
and I put glut32.dll into WINDOWS\SYSTEM
but now I get the message:

Error C:\BC5\LIB\GLUT32.LIB contains invalid OMF record, type 0x21

What should I do now?

wilco
05-28-2001, 01:11 PM
I suspect you are using borland C++. You cannot use the standard glut.lib library with Borland since it is for MSVC++

You must create import lib from the dll

A quick internet search reveals the following site
http://ucsub.colorado.edu/~macklem/borland.html

gregor27
05-28-2001, 01:23 PM
Oh great. Is that a simple task? Can I get it somewhere?

gregor27
05-28-2001, 01:26 PM
Ah right - in my haste I didn't notice your link. Thanks.