View Full Version : First hurdle

05-28-2001, 07: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, 08:23 AM
did you put the glut.h in the include\GL\

05-28-2001, 11:53 AM
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?

05-28-2001, 12: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

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

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