• 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
ld: illegal text-relocoation (direct reference) to (global, weak) error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ld: illegal text-relocoation (direct reference) to (global, weak) error


  • Subject: ld: illegal text-relocoation (direct reference) to (global, weak) error
  • From: Roni Music <email@hidden>
  • Date: Tue, 28 Feb 2012 09:57:20 +0100

Lion 10.7.3/Xcode 4.3

Finally managed to build my app with Xcode 4.3, release build works OK
but in the debug build there is a linker error:

ld: illegal text-relocoation (direct reference) to (global,weak)
__ZSt6__findIN9__gnu_cxx17__normal_iteratorIPKSsSt6vectorISsSaISsEEEEPKcET_SA_SA_RKT0_St26random_access_iterator_tag in /Volumes/Macintosh HD/programming/MY_APP/build/MyApp_Xcode4_Lion.build/Debug/MyApp.build/Objects-normal/i386/MyQTUtils.o from __ZSt6__findIN9__gnu_cxx17__normal_iteratorIPKSsSt6vectorISsSaISsEEEEPKcET_SA_SA_RKT0_St26random_access_iterator_tag in /Volumes/Macintosh HD/programming/MY_APP/build/MyApp_Xcode4_Lion.build/Debug/MyApp.build/Objects-normal/i386/MyQTUtils.o for architecture i386

The app is a C++ Carbon app, I've tried to Google for a solution but no luck. I've tried to remove the cpp file that generates the error and add it back to the project,
then the error moves to some another file.

Does anyone know what the error means?
The project have a compiled fine for ages with Xcode 3.2.6 using GCC.

Rolf

_______________________________________________
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: Xcode 4 rebuilds entire project
  • Next by Date: Re: Xcode 4 editor scripting - help!
  • Previous by thread: Clang and #pragma message - can I disable this?
  • Next by thread: SVN crash
  • Index(es):
    • Date
    • Thread