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