Praveen S
Praveen S

Reputation: 10393

Compiler error on including opengl/opengl.h

I have included the opengl.framework and glut.framework from /systems/library/framework into my xcode project. However when i import the header import <OpenGl/OpenGl.h>, i get an error no such file or directory. However in the framework group i can see the header files.

Can someone point out the rite way to include these frameworks in my iphone/ipad app project?

Upvotes: 1

Views: 1635

Answers (1)

datenwolf
datenwolf

Reputation: 162317

The header file usually is GL/gl.h, i.e.

#include <GL/gl.h>

On MacOS X the base directory naming breaks with this convention, there it is

#include <OpenGL/gl.h>

Upvotes: 3

Related Questions