ld: illegal text-relocoation (direct reference) to (global, weak) error
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