Re: How do you force an Xcode C++ tool to statically link to a library?
Re: How do you force an Xcode C++ tool to statically link to a library?
- Subject: Re: How do you force an Xcode C++ tool to statically link to a library?
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 22 Nov 2007 13:22:34 -0800
On Nov 22, 2007, at 9:50 AM, Graham Reitz wrote:
I am trying to force xcode to statically link against the
mysqlclient_r.a library but it prefers to look for the dylib first
(see below). The dylib does exist but I can't get the application to
look there.
Or another way would be to get it to look in the Library search
path, which is where the dylib is instead of /usr/local/mysql/lib/
mysql. Can I put the dylib in the application directory?
That won't change a thing. The linker always prefers dynamic over
static frameworks, and the only way to work around this is to, instead
of including the library in the Xcode project, writing out the full
path to the static library in the OTHER_LDFLAGS setting.
Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request
_______________________________________________
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