I’m trying to run a few opengl programs in codewarrior 8 but I always get the errors such as “file <GL/glu.h> cannot be opened.” I changed the projects access paths to try and get the headers included
but its still giving me errors. Does anyone know what I can do to remedy the situation?
Need more information:
Are you on 9 or X?
If X, are you building a CFM or a Mach-O app?
If 9 or CFM, have you got the Apple OpenGL SDK?
try taking out the part before and inluding the / in the include
so #include <GL/xxx.h>
becomes
#include <xxx.h>
works for me when i have that problem
Under OS X you don’t have to use Cocoa or Mach-O, Codewarrior 8 lets you make nice Carbon (CFM) OpenGL apps:
Choose:
File --> New… --> Carbon
Add the access paths to the following folders:
OpenGL_SDK_1.2/Headers
OpenGL_SDK_1.2/Resources
OpenGL_SDK_1.2/Libraries
Add the following to your code:
#include “glut.h”
(not #include <glut.h>, unless you’re going to add another system access path)
Finally, add the following to your project:
glut_carbon.rsrc
CarbonLib
carbon_glut.lib
OpenGLLibraryStub
OpenGLMemoryStub
OpenGLUtilityStub
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.