PDA

View Full Version : HOW DO I MAKE OPENGL WORK<<<<



Andrewinator
10-23-2003, 03:29 PM
I am trying to get OpenGL to work with codewarrior v.8, and I recieved the following instructions:

1) Put the following files in the following locations:

glut32.dll, opengl.dll, glu32.dll -into- C:\Windows\System32 glut32.lib, glu32.lib, opengl32.lib, glaux.lib -into- C:\Program Files\Metrowerks\Codewarrior\Win32 -x86 Support\Libraries\Win32 SDK GL.h, GLU.h, GLAUX.f -into- C:\Program Files\Metrowerks\Codewarrior\Win32 -x86 Support\Headers\Win32 SDK\GL
2) At the top of the program put the following: #define WIN32_LEAN_AND_MEAN #include <windows.h>
The problem is, I can't find glut32.lib and glut32.dll :( . I did searches for them (in windows explorer) but turned up nothing. I tried running an asteroids program (which I had made in version 7 of codewarrior on an old computer far far away) but it gave me a thousand errors, saying mostly "undefined identifier, It also had a problem with #include <gl/glut.h> I believe. Please help!

Tom78
10-23-2003, 05:43 PM
You can't find GLUT, because GLUT is not a part of OpenGL. It's a Utility Toolbox, that you have to download separatly : http://www.opengl.org/developers/documentation/glut/

cu
Tom

nexusone
10-24-2003, 03:59 AM
I don't know the compiler you are using but some compilers don't like the / over the \.

#include <gl/glut.h> change to #include <gl\glut.h>

In the case of linux the paths are case sensitive.
#include <gl/glut.h> maybe should be this <GL/glut.h>

nexusone
10-24-2003, 04:06 AM
Also would add you need to make sure you have the correct version of the glut library for your compiler.

Andrewinator
10-24-2003, 12:49 PM
Thanks SO much. I REALLY appreciate it.