Wierd Linking Errors
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?
-Sta7ic
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?
-Sta7ic
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.
(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.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Linking to ImageIO and Errors | Justin Brimm | 7 | 3,730 |
Apr 27, 2006 01:38 PM Last Post: SOUCHAN |
|
| SDL causing linking errors. | unknown | 1 | 2,109 |
Feb 26, 2006 10:12 AM Last Post: unknown |
|
| wierd...light clipping...or something [edited] | ghettotek | 2 | 2,386 |
Feb 11, 2003 07:10 AM Last Post: ghettotek |
|


