-
ogl in os 10.2
The only tutorials I've found so far are either for pre X applications or cocoa based ogl implementations. If I want to do ogl programming on os X, do I have to use cocoa?
I've tried to compile the non cocoa based olg code on the NEHE website, but after adding GLUT and OpenGL frameworks, changing the include paths to <GLUT/..> I get the following compile error:
in crt1.o illegal reference to symbol : __objcInit
Can this be corrected? Thanks for the help.
-
Re: ogl in os 10.2
Using project builder btw.
-
Advanced Member
Frequent Contributor
Re: ogl in os 10.2
Add either the Cocoa or Foundation frameworks, or add -lobjc to the linker flags.
-
Re: ogl in os 10.2
Alright, I've added -lobjc, now I'm getting undef. refs to _DrawGLScene _InitGL _ReSizeGLScene
I have included both the GLUT an OpenGL frameworks
Thanks
-
Advanced Member
Frequent Contributor
Re: ogl in os 10.2
Those are functions from NeHe's base code. There'll be another .c file somewhere you need to add to your project.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules