PDA

View Full Version : ogl in os 10.2



johnny_north
01-18-2003, 05:10 PM
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.

johnny_north
01-18-2003, 05:46 PM
Using project builder btw.

OneSadCookie
01-18-2003, 07:52 PM
Add either the Cocoa or Foundation frameworks, or add -lobjc to the linker flags.

johnny_north
01-25-2003, 04:01 AM
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

OneSadCookie
01-25-2003, 02:07 PM
Those are functions from NeHe's base code. There'll be another .c file somewhere you need to add to your project.