Re: Linking objects causes "Can't be a weak definition" LD error
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