I am trying run Apple documentation sample code, placed on this link...
However when I run this code XCode fails to compile. It shows several error stating that below listed variables are not defined.
- GL_COLOR_BUFFER_BIT
- GL_VIEWPORT
- GL_PROJECTION
- GL_MODELVIEW
- GL_QUADS
My understanding is, it is obvious that Xcode couldn't fins this const variables and it seems like they are from OpenGL framework. I checked my imported framework list it have OpenGL in it.
How to solve this?
Environment :
OS version : MacOSX 10.7.3
Base SDK of the project : MacOSX SDK 10.7
Compiler : Defualt LLVC GCC 4.2