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: Link Error after upgrading to Xcode 2.5



On 29/1/08 10:45 AM Wyatt Webb wrote:
We've just finished a project, so I thought I'd start moving our tools to 2.5 so we could let developers upgrade to Leopard if they wanted to. So, this product builds fine in 2.4.x and I simply installed 2.5 and built our two debug builds. Intel built fine. PPC gives a link error that I'm having a hard time tracking down. Please let me know what library I'm missing or if I'm pointing at the wrong one.

<snip>

Then I get a long list of errors that are repeats of two errors for many files:

[...] reference to undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
[...] reference to undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm


Any clues would be appreciated.

I've been bitten by this, too, but haven't found a good solution yet. Someone pointed me to add "_GLIBCPP_EXTERN_TEMPLATE=0" to the preprocessor macros, which solves that immediate problem. However, I then get other link errors which seem to be saying that it's trying to link with libstdc++.dylib, which it shouldn't be doing with gcc 3.3.


Nobody has given me a solution other than use gcc 4, which shuts out pre-10.3.9 systems, which is a problem - I'd like to continue supporting 10.2 with this release. Running 10.4 and Xcode 2.4.1 seems to be the only way around it, unless someone else can suggest a solution.

John
--
John Brownie, email@hidden or email@hidden
Summer Institute of Linguistics      | Mussau-Emira language, Mussau Is.
Ukarumpa, Eastern Highlands Province | New Ireland Province
Papua New Guinea                     | Papua New Guinea
_______________________________________________
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: 
 >Link Error after upgrading to Xcode 2.5 (From: Wyatt Webb <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.