Solved: STATIC.a library complains on "illegal reference for -dynamic code"
Solved: STATIC.a library complains on "illegal reference for -dynamic code"
- Subject: Solved: STATIC.a library complains on "illegal reference for -dynamic code"
- From: Ruslan Zasukhin <email@hidden>
- Date: Thu, 30 Nov 2006 10:55:16 +0200
- Thread-topic: Solved: STATIC.a library complains on "illegal reference for -dynamic code"
On 11/30/06 10:11 AM, "Eric Albert" <email@hidden> wrote:
> On Nov 29, 2006, at 11:59 PM, Ruslan Zasukhin wrote:
>
>> I have project1 which make libvclient.a as STATIC.
>> It compiles and linked okay.
>>
>> Then second project which builds VPHP complains on link:
>>
>> ---------------------------------------------------------------
>> /usr/bin/ld: /PARADIGMA/Developer_2/VClient/xCode/build/Release
>> (Universal)/libVClient.lib.a(VC_SqlDatabase.o) illegal reference for
>> -dynamic code (section difference reference from section
>> (__TEXT,__eh_frame)
>> relocation entry (12) to symbol:
>> std::_Rb_tree_rotate_right(std::_Rb_tree_node_base*,
>> std::_Rb_tree_node_base*&)defined in dylib:
>> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/libstdc++.dylib)
>
> Don't build your static library with -mdynamic-no-pic if you're going
> to link it into anything other than an executable file.
>
> Hope this helps,
> Eric
Hi Eric,
Actually problem was that SECOND project was not updated
to have settings like
GCC_VERSION_i386 = 4.0
GCC_VERSION_ppc = 3.3
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
MACOSX_DEPLOYMENT_TARGET_ppc = 10.3
SDKROOT_ppc /Developer/SDKs/MacOSX10.3.9.sdk
After this fix all have gone smoothly.
Again, thank you!
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
_______________________________________________
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