Wierd Linking Errors

Post: #1
I'm trying to make a small OGL program using Cpp in ProjectBuilder that has a class that handles model arrays, loading, and saving. I've written all the code out, and it returns the linking error:

usr/lib/crt1.o: illegal reference to symbol: __objcInit defined in indirectly refenced dynamic library usr/lib/libobjc.A.dylib

I've looked through some OS X NeHe tutorials, and at least Lesson 8 compiles fine -- using the standard C compiler. What's going wrong?

Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post: #2
You need to include Cocoa.framework in your project.

(or include Foundation.framework or add -lobjc to the linker flags or ...)

This error is usually seen by people using GLUT, not realizing that MacOSX's GLUT implementation uses Cocoa.
Quote this message in a reply
Post: #3
I knew I should've started learning Cocoa earlier Rasp

Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Linking to ImageIO and Errors Justin Brimm 7 5,893 Apr 27, 2006 01:38 PM
Last Post: SOUCHAN
  SDL causing linking errors. unknown 1 3,120 Feb 26, 2006 10:12 AM
Last Post: unknown
  wierd...light clipping...or something [edited] ghettotek 2 3,897 Feb 11, 2003 07:10 AM
Last Post: ghettotek