Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking Problem with 10.3.9 sdk



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: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Re: Linking Problem with 10.3.9 sdk (From: "E. Wing" <email@hidden>)
 >Re: Linking Problem with 10.3.9 sdk (From: Sarah Carruthers <email@hidden>)
 >Re: Linking Problem with 10.3.9 sdk (From: Chris Espinosa <email@hidden>)
 >Re: Linking Problem with 10.3.9 sdk (From: Sarah Carruthers <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.