Re: Linking Problem with 10.3.9 sdk
Re: Linking Problem with 10.3.9 sdk
- Subject: Re: Linking Problem with 10.3.9 sdk
- From: Fritz Anderson <email@hidden>
- Date: Thu, 2 Feb 2006 11:30:39 -0600
On 2 Feb 2006, at 10:36 AM, Sarah Carruthers wrote:
I'm not sure if I understand why I can build and link using gcc 4.0
and 10.3.9 sdk (I'm linking with my versions of zlib and libpng
that I've built myself using gcc 4.0), but my plugin still fails to
load. Are you saying that zlib and libpng built with gcc 4.0 will
link successfully, but fail to work at runtime?
Assuming you are targeting systems earlier than 10.3.9, everything
that runs as part of your application MUST be built with gcc 3.3:
Application, libraries, plugins, everything.
If you're targeting 10.3.9 and later, it's recommended you use gcc
4.0, in which case everything must be built with 4.0.
Otherwise you'll run into things like compiler-glue code (like 4.0's
_sprintf$LDBLStub) not being defined in the runtime used to build the
application.
I can't swear to it, but I wonder if explicitly linking
libSystemStubs.a into a 3.3 project is a Bad Idea. Runtime libraries
are linked in automatically, and adding another version's runtime at
best masks other problems.
So, important safety tip: Don't cross the beams.
-- F
--
Fritz Anderson -- http://www.manoverboard.org/
Consulting Programmer -- http://resume.manoverboard.org/
Step into Xcode, Now Available -- http://six.manoverboard.org/
_______________________________________________
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