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.
did you put the glut.h in the include\GL
folder?
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?
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
Oh great. Is that a simple task? Can I get it somewhere?
Ah right - in my haste I didn’t notice your link. Thanks.