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

STATIC.a library complains on "illegal reference for -dynamic code"


  • Subject: STATIC.a library complains on "illegal reference for -dynamic code"
  • From: Ruslan Zasukhin <email@hidden>
  • Date: Thu, 30 Nov 2006 09:59:42 +0200
  • Thread-topic: STATIC.a library complains on "illegal reference for -dynamic code"

Hi guys,

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)


/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 (16) to symbol:
std::_Rb_tree_rotate_left(std::_Rb_tree_node_base*,
std::_Rb_tree_node_base*&)defined in dylib:
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/libstdc++.dylib)


/usr/bin/ld: /PARADIGMA/Developer_2/VClient/xCode/build/Release
(Universal)/libVClient.lib.a(VNETW_Packet.o) malformed object, illegal
reference for -dynamic code (reference to a coalesced section
(__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry
(122))


/usr/bin/ld: /PARADIGMA/Developer_2/VClient/xCode/build/Release
(Universal)/libVClient.lib.a(VNETW_Packet.o) malformed object, illegal
reference for -dynamic code (reference to a coalesced section
(__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry
(268))
collect2: ld returned 1 exit status
---------------------------------------------------------------


I have try add into first STATIC LIB project
    linker flgas:     -lstdc++-static


But this not help.

Anybody have idea how to fix this ?


--
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

  • Follow-Ups:
    • Re: STATIC.a library complains on "illegal reference for -dynamic code"
      • From: Eric Albert <email@hidden>
  • Prev by Date: Re: Dealing with slash characters with fopen?
  • Next by Date: Re: STATIC.a library complains on "illegal reference for -dynamic code"
  • Previous by thread: Re: Dealing with slash characters with fopen?
  • Next by thread: Re: STATIC.a library complains on "illegal reference for -dynamic code"
  • Index(es):
    • Date
    • Thread