Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Solved: STATIC.a library complains on "illegal reference for -dynamic code"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: STATIC.a library complains on "illegal reference for -dynamic code" (From: Eric Albert <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.