Adding libraries to a project in xcode - symbols not found

Posted by kudorgyozo on Stack Overflow See other posts from Stack Overflow or by kudorgyozo
Published on 2010-06-01T11:55:10Z Indexed on 2010/06/01 12:03 UTC
Read the original article Hit count: 361

Filed under:
|
|
|
|

I am trying to make an iphone app in xcode that uses pjsip. The problem is I don't know how to link the libraries.

I have the ARM version of the libraries in this folder in mac os x. /Users/kudorgyozo/pjsip_iphone

In Xcode: I have specified the library and header search paths like this:

for includes:

/Users/kudorgyozo/pjsip_iphone/pjlib/include /Users/kudorgyozo/pjsip_iphone/pjlib-util/include /Users/kudorgyozo/pjsip_iphone/pjmedia/include /Users/kudorgyozo/pjsip_iphone/pjnath/include /Users/kudorgyozo/pjsip_iphone/pjsip/include

for libraries:

/Users/kudorgyozo/pjsip_iphone/pjlib/lib /Users/kudorgyozo/pjsip_iphone/pjlib-util/lib /Users/kudorgyozo/pjsip_iphone/pjmedia/lib /Users/kudorgyozo/pjsip_iphone/pjnath/lib /Users/kudorgyozo/pjsip_iphone/pjsip/lib

and then using the "Other linker flags" :

-lpj-arm-apple-darwin9 -lpjlib-util-arm-apple-darwin9 -lpjmedia-arm-apple-darwin9 -lpjmedia-audiodev-arm-apple-darwin9 -lpjmedia-codec-arm-apple-darwin9 -lpjsdp-arm-apple-darwin9 -lpjnath-arm-apple-darwin9 -lpjsip-arm-apple-darwin9 -lpjsip-simple-arm-apple-darwin9 -lpjsip-ua-arm-apple-darwin9 -lpjsua-arm-apple-darwin9

Is this OK like this? Because it gives me symbol(s) not found errors. I think no symbol is found from the "included" libraries. I don't know what is wrong i'm just beginning to understand how building an app works under linux based systems i've only done programming in C# before.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about xcode