I have included the OpenGL.framework framework ...
You do not enable frameworks. You include (or import) headers and link to frames. In addition, only the compiler displays only an output warning. all after it comes from the linker ( ld ).
The compiler and linker do not complain that no other of these functions exists, so your problem is simply that this function does not exist. Since it does not exist, it is not declared in the header (hence, a compiler warning) or is not exported by the framework (hence, a linker error).
Make sure you are using the OpenGL environment from the iPhone SDK and not from your (Mac OS X) system folder. They are different, and I know that in Mac OS X OpenGL.framework there is no glOrthof function. Remove the OpenGL framework that you have in your project and add the OpenGL iPhone framework using the "Add Existing Frames" command that appears when you right-click on a group in your Xcode project.
My goal is a desktop application, ...
Then you will need to find a replacement for this glOrthof function because it does not exist on the Mac. (Thanks to Brad Larson for pointing out this part of the question.)
Peter Hosey
source share