• 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
Re: STATIC.a library complains on "illegal reference for -dynamic code"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Solved: STATIC.a library complains on "illegal reference for -dynamic code"
      • From: Ruslan Zasukhin <email@hidden>
References: 
 >STATIC.a library complains on "illegal reference for -dynamic code" (From: Ruslan Zasukhin <email@hidden>)

  • Prev by Date: STATIC.a library complains on "illegal reference for -dynamic code"
  • Next by Date: Solved: STATIC.a library complains on "illegal reference for -dynamic code"
  • Previous by thread: STATIC.a library complains on "illegal reference for -dynamic code"
  • Next by thread: Solved: STATIC.a library complains on "illegal reference for -dynamic code"
  • Index(es):
    • Date
    • Thread