• 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: Linking objects causes "Can't be a weak definition" LD error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking objects causes "Can't be a weak definition" LD error


  • Subject: Re: Linking objects causes "Can't be a weak definition" LD error
  • From: Tommy Nordgren <email@hidden>
  • Date: Mon, 24 Jul 2006 22:12:30 +0200


Jul 24, 2006 kl. 9:41 PM skrev Aaron Kobayashi:

Hello everyone,

I'm using xcode 2.3 to compile a large application that is comprised of a target application and multiple sub-targets that build large object files. The application target and all sub targets build their object files without errors, but the linker tosses an undefined symbol error as follows:

undefined symbol 126062 (std::_Setfill<char> std::setfill<char> (char)) can't be a weak definition

I am linking to stdlibc++, and all calls to setfill are declared in the std namespace (IE: std::setfill). Can anyone suggest a reason why these aggregate object files would compile without fail, but the linker would complain. I also am wondering why the first part of that error message uses a capital 'S' while the function itself should be lowercase as it is printed in the second part of the error message.

Thoughts?

Thanks,
Aaron K.

	The capital 'S' is probably an internal class, used as return value.
-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
email@hidden



_______________________________________________
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: 
 >Linking objects causes "Can't be a weak definition" LD error (From: Aaron Kobayashi <email@hidden>)

  • Prev by Date: RE: Associating icon wiht app bundle in XCode
  • Next by Date: Re: Question about static libraries...
  • Previous by thread: Linking objects causes "Can't be a weak definition" LD error
  • Next by thread: Re: Linking objects causes "Can't be a weak definition" LD error
  • Index(es):
    • Date
    • Thread