Re: STATIC.a library complains on "illegal reference for -dynamic code"
Re: STATIC.a library complains on "illegal reference for -dynamic code"
- Subject: Re: STATIC.a library complains on "illegal reference for -dynamic code"
- From: Eric Albert <email@hidden>
- Date: Thu, 30 Nov 2006 00:11:49 -0800
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
_______________________________________________
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