Re: Building a library using as universal for 10.3.9 ppc from an Intel build box
Re: Building a library using as universal for 10.3.9 ppc from an Intel build box
- Subject: Re: Building a library using as universal for 10.3.9 ppc from an Intel build box
- From: Greg Guerin <email@hidden>
- Date: Thu, 20 Jul 2006 12:56:42 -0700
Brant Sears wrote:
>This creates a universal version of the library which I would expect to
>work. For whatever reason when I try to use it, my app doesn't link (it has
>some references to missing symbols that appear to be C++ std library
>symbols). Whereas, if I use the library created in a similar manner on the
>PPC, it links.
This sounds very much like what happened to me, in the story I related:
<http://lists.apple.com/archives/xcode-users/2006/Jul/msg00604.html>
I had an unexpected reference to a C++ std library in the compiled PPC lib.
This was very strange in my case, because I had no C++ source code
compiled, nor C++ libs, only pure C.
If you're seeing a similar result without Xcode involved, then I suspect
the host libraries or frameworks resident on the Intel-based build machine.
Perhaps one of the frameworks I was using happens to have a stdC++ lib
reference in it on Intel-based machines, and it's somehow getting
transitively put into my lib compiled for PPC.
IIRC, the BSD functions are in a framework, the System framework. In any
case, the BSD libs on Intel boxes are universal, so "linking for PPC" will
probably link against the 10.4u local-host libs unless you arrange
otherwise.
As noted, though, when I use a base SDK of the PPC version, it solved the
problem for me. I won't guess whether it will work for you, because our
build systems are so different (make vs. Xcode) that anything could be
happening. If you can convince make or gcc to use an SDK base-dir, rather
than the build host's local install, it may be revealing. I'm not familiar
with how to set that up in make, though.
By the way, exactly which symbols or libs do you see listed as missing?
Sometimes that's a clue as to which version is linked in. I scanned the
past postings on this thread and didn't notice anything specific, or did I
just miss it?
-- GG
_______________________________________________
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