Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: ogl in os 10.2

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2003
    Location
    kansas city MO USA
    Posts
    3

    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.

  2. #2
    Junior Member Newbie
    Join Date
    Jan 2003
    Location
    kansas city MO USA
    Posts
    3

    Re: ogl in os 10.2

    Using project builder btw.

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Dec 2001
    Location
    Wellington, New Zealand
    Posts
    548

    Re: ogl in os 10.2

    Add either the Cocoa or Foundation frameworks, or add -lobjc to the linker flags.

  4. #4
    Junior Member Newbie
    Join Date
    Jan 2003
    Location
    kansas city MO USA
    Posts
    3

    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

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Dec 2001
    Location
    Wellington, New Zealand
    Posts
    548

    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
  •