• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Linking Problem with 10.3.9 sdk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Linking Problem with 10.3.9 sdk
      • From: Sarah Carruthers <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>)

  • Prev by Date: Fwd: cd
  • Next by Date: Re: converting / reading input arguments as utf8
  • Previous by thread: Re: Linking Problem with 10.3.9 sdk
  • Next by thread: Re: Linking Problem with 10.3.9 sdk
  • Index(es):
    • Date
    • Thread