• 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
Link errors with Xcode 2.5 again
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Link errors with Xcode 2.5 again


  • Subject: Link errors with Xcode 2.5 again
  • From: John Brownie <email@hidden>
  • Date: Thu, 24 Jan 2008 12:57:33 +1000
  • Organization: SIL

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:
This email sent to email@hidden


  • Prev by Date: Re: xcodebuild "default" configuration?
  • Next by Date: Re: Unable to run application on other machines
  • Previous by thread: Jumping to a file and line from output
  • Next by thread: External Build - errors and warnings problem
  • Index(es):
    • Date
    • Thread