Mailing Lists: Apple Mailing Lists

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

Link errors with Xcode 2.5 again



Back in November, I asked about a problem with Xcode 2.5 link errors. The only useful suggestion was posted by Jake Traynham, and involved adding "_GLIBCPP_EXTERN_TEMPLATE=0" to the preprocessor macros. That solved my reference to __default_alloc_template. However, I now get the following link error:

Ld "/Users/john/Documents/Programming/Carbon/AppName/build/Debug/AppName Debug.app/Contents/MacOS/AppName Debug" normal ppc
cd /Users/john/Documents/Programming/Carbon/AppName
setenv MACOSX_DEPLOYMENT_TARGET 10.2
setenv NEXT_ROOT /Xcode2.5/SDKs/MacOSX10.4u.sdk
/usr/bin/g++-3.3 -o /Users/john/Documents/Programming/Carbon/AppName/build/Debug/AppName\ Debug.app/Contents/MacOS/AppName\ Debug -L/Users/john/Documents/Programming/Carbon/AppName/build/Debug -L/Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/darwin/3.3 -F/Users/john/Documents/Programming/Carbon/AppName/build/Debug -filelist /Users/john/Documents/Programming/Carbon/AppName/build/AppName.build/Debug/AppName.build/Objects-normal/ppc/AppName\ Debug.LinkFileList -framework Carbon -arch ppc -Wl,-Y,1455 -mmacosx-version-min=10.2 -Wl,-syslibroot,/Xcode2.5/SDKs/MacOSX10.4u.sdk
ld: /Users/john/Documents/Programming/Carbon/AppName/build/AppName.build/Debug/AppName.build/Objects-normal/ppc/file1.o illegal reference for -dynamic code (section difference reference from section (__TEXT,__eh_frame) relocation entry (10) to symbol: std::_Rb_tree_rotate_right(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*&) defined in dylib: /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.dylib)
ld: /Users/john/Documents/Programming/Carbon/AppName/build/AppName.build/Debug/AppName.build/Objects-normal/ppc/file1.o illegal reference for -dynamic code (section difference reference from section (__TEXT,__eh_frame) relocation entry (14) to symbol: std::_Rb_tree_rotate_left(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*&) defined in dylib: /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.dylib)


At least part of the problem seems to me to be that it's trying to link to a dynamic library, when I'm trying to target 10.2, so I want it statically linked (at least for PPC).

Is there a solution, or has the move to Leopard and Xcode 2.5 (or 3.0 for that matter) killed the ability to target pre-10.3.9?

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


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.