Re: XCODE choose system's EXPAT instead of my. Argh....
Re: XCODE choose system's EXPAT instead of my. Argh....
- Subject: Re: XCODE choose system's EXPAT instead of my. Argh....
- From: Eric Albert <email@hidden>
- Date: Fri, 30 Jun 2006 11:28:55 -0700
On Jun 30, 2006, at 11:26 AM, Ruslan Zasukhin wrote:
On 6/30/06 8:18 PM, "Eric Albert" <email@hidden> wrote:
Hi Ruslan,
have you tried to disable switch "Link with default libs" ?
Yes, but then it not links...at in list of not found sylbols
there was no
expat symbols. Only STD symbols.
Yeah, you'll need to re-specify the default libraries manually,
excluding
the expat library. This is standard operating procedure when
requiring a
static link of one particular library which is packaged as a
dylib in the
system. Unless there's an "ignore specific default library"
switch out
there somewhere (like what MS's linker uses), that's likely the
only way
around this.
There's another way to do this which doesn't require you to know the
list of standard libraries (which can change from release to release
and shouldn't be hardcoded in your project). Specify the -
search_paths_first flag to the linker (you might have to use -Wl,-
search_paths_first in Xcode) and as long as you've given the path to
your static library in your linker directories Xcode will use your .a
file before it finds the system's dylib.
See the ld man page for details about -search_paths_first.
Hope this helps,
Eric
Thank you, Eric!
I will try this asap.
Although I think xcode team should consider to make this flag to be
ON on
default. This is the most expected behavior
Unfortunately, turning the flag on by default would break existing
projects. It might make sense to turn it on in the templates for new
projects, though. I'd suggest filing a bug if you think that'd be
helpful.
-Eric
_______________________________________________
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