undefined symbol <int>
undefined symbol <int>
- Subject: undefined symbol <int>
- From: "Jack Nutting" <email@hidden>
- Date: Wed, 23 Aug 2006 01:20:26 +0200
Hi gang,
After upgrading to XCode 2.4, I suddenly get errors like this during
my app's final link:
/usr/bin/ld: /path/to/something.o undefined symbol 544383 (bool
__gnu_cxx::operator==<wchar_t const*, std::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >
(__gnu_cxx::__normal_iterator<wchar_t const*,
std::basic_string<wchar_t, std::char_traits<wchar_t>,
std::allocator<wchar_t> > > const&,
__gnu_cxx::__normal_iterator<wchar_t const*,
std::basic_string<wchar_t, std::char_traits<wchar_t>,
std::allocator<wchar_t> > > const&)) can't be a weak definition
Here's the command (minus the lists of search directories, frameworks,
object files, etc) that produces the error:
/usr/bin/g++-4.0 -o
/path/to/something.app/Contents/MacOS/something [SNIP] -arch ppc
-Wl,-Y,1455 -mmacosx-version-min=10.4 -lstdc++ -isysroot
/Developer/SDKs/MacOSX10.4u.sdk
You may notice that the ld output references "something.o". That's an
XCode Object File target in the same project as the application. This
file contains most of the app's code, and is then linked together with
one or another main file for producing either an executable Mac app or
a boost unit-test command-line executable (depending on which target
we build).
I've tried tweaking my build settings a bit (the macosx-version-min
setting, and the SDK setting), and still get the error, but with a
different number as the "undefined symbol". A full clean and rebuild
didn't make a difference either.
Fairly bizarre. The only idea that springs to mind for me is that one
or more of the libraries I'm linking in needs to be recompiled against
the latest SDKs that shipped with XCode 2.4, but that's only a guess
(and doesn't even feel like a likely one). Any other ideas, anyone?
--
// jack
// http://www.nuthole.com
_______________________________________________
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