Re: Building a dynamic library using Xcode
Re: Building a dynamic library using Xcode
- Subject: Re: Building a dynamic library using Xcode
- From: Chris Hanson <email@hidden>
- Date: Sun, 30 Sep 2012 20:20:26 -0700
On Sep 30, 2012, at 6:55 PM, Jens Alfke <email@hidden> wrote:
> I think you need to add /usr/local/lib to the target’s library search path. (Yes, even though you added the library file to the target. For some reason Xcode isn’t smart enough to tell the linker where to look for the library.)
Xcode passes the names rather than the full paths of libraries (and frameworks) because that's the way the linker is commonly used on Unix platforms. In general when using ld on the command line — usually as a side-effect of invoking the compiler — you'd pass -lfoo or -framework Foo, rather than a full path.
-- Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden