How to link Cocoa static library to C command line target?

Posted by Devara Gudda on Stack Overflow See other posts from Stack Overflow or by Devara Gudda
Published on 2010-02-27T11:47:13Z Indexed on 2010/04/11 11:03 UTC
Read the original article Hit count: 239

I have static library target, which uses Foundation classes(NSArray,etc) . I want to use this static library in Command line tool target. The command line tool contains only C files. From command line tool I want to call a method exported in static library. So I have modified header search path and linked the static library. When I compile the command line tool it is following linker errors.


Undefined symbols:
"_OBJC_CLASS_$_NSMutableArray", referenced from:
"_objc_msgSend", referenced from:
What is the method to link a static library which uses Foundation classes from a command line tool which contains C files?

Regards

Devara Gudda

© Stack Overflow or respective owner

Related posts about xcode

Related posts about cocoa