Re: Problems moving to 2.1
Re: Problems moving to 2.1
- Subject: Re: Problems moving to 2.1
- From: Eric Albert <email@hidden>
- Date: Fri, 12 Aug 2005 18:52:19 -0700
On Aug 12, 2005, at 3:45 PM, Chris Griffin wrote:
I have a project that worked fine in 1.5. I am now using 2.1 and
making some changes. I have a library that I include and it is now
complaining of undefined symbols:
std::__default_alloc_template<true, 0>::deallocate(void*, unsigned
long)
std::__default_alloc_template<true, 0>::allocate(unsigned long)
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_Rep::_S_create(unsigned long, std::allocator<char> const&)
Isn't that all part of the C++ library? I have been using <string>,
<vector> and such for awhile now with no errors. It's only when I
started calling this library that I get the undefined errors.
Was your library compiled with gcc 4? The C++ ABI changed between gcc
3.3 and 4.0, as did the location of the STL -- it's now in a dynamic
library, not a static library -- so you can't mix C++ code built with
the two compilers.
If it helps at all, the expectation is that the ABI is stable now, so
4.0-built code should be able to be mixed with future compiler
versions.
-Eric
_______________________________________________
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