Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.