• 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: Sarah Carruthers <email@hidden>
  • Date: Thu, 2 Feb 2006 10:46:04 -0800

Fritz,

Right. That's bad. Okay. All right. Important safety tip. Thanks, Egon.

Seems to be working now. Not sure why, but unless I've gone crazy, yesterday the version that I built with gcc 4.0 using the 10.3.9 sdk would build and link, but not load.
Today I built it, using gcc 4.0, and 10.3.9 sdk, and sure enough it does load. Oddly, I'm still linking against the versions of zlib and libpng that were built with gcc 3.3!? Should that even work? I didn't do it on purpose, just noticed my "mistake" when I was confirming what I did to make it work.
I'm totally confused, but happy that it's working.
One step closer to a universal binary. Now I just have to fix the assembly that causes my i386 build to fail...


On another note:
I'm having a tough time pinning it down, but XCode 2.2 seems a bit flaky sometimes. I love the new features (those that I've noticed anyway), but occasionaly the Build Results window becomes somehwhat unresponsive. If I click on an error/warning, to bring up the offensive file in the editor pane, nothing happens. I have to close the window, and open it again to get it to respond, at which point the correct line is highlighted, and the file is displayed in the editor window. The only solution I've found is to quit and restart XCode. When this occurs, I've also noticed that the close/minimize/ maximize buttons in the top left corner of the window look the way they should when they are moused over (I can see the x / - /+), even when the mouse is elsewhere. Anyone else seen this behaviour?


Sarah

-- -- --

Sarah Carruthers
Software Designer
Acuma Labs Inc.
Victoria, BC Canada
(250) 382-7709 ext.24
email:  email@hidden


On 2-Feb-06, at 9:30 AM, Fritz Anderson wrote:

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
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>)
 >Re: Linking Problem with 10.3.9 sdk (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: cd
  • Next by Date: Re: Why is Executable Built with Permission 755 instead of 775?
  • Previous by thread: Re: Linking Problem with 10.3.9 sdk
  • Next by thread: Class Model: still strange
  • Index(es):
    • Date
    • Thread