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

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


  • Subject: Linking objects causes "Can't be a weak definition" LD error
  • From: Aaron Kobayashi <email@hidden>
  • Date: Mon, 24 Jul 2006 14:41:56 -0500

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.

 _______________________________________________
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: Linking objects causes "Can't be a weak definition" LD error
      • From: Paul Walmsley <email@hidden>
    • Re: Linking objects causes "Can't be a weak definition" LD error
      • From: Tommy Nordgren <email@hidden>
  • Prev by Date: Re: [OT] Anyone created Xcode projects for building Open Source
  • Next by Date: RE: Associating icon wiht app bundle in XCode
  • Previous by thread: Re: Question about static libraries...
  • Next by thread: Re: Linking objects causes "Can't be a weak definition" LD error
  • Index(es):
    • Date
    • Thread