./libstdc++-v3/include/bits/stl_alloc.h : Incompatibility between g++ 3.3 and g++ 3.2?

Andreas Jaeger aj@suse.de
Fri Sep 5 14:53:00 GMT 2003


Martin Beaudoin <beaudoin.martin@ireq.ca> writes:

> Hello,
>
> I am experiencing some STL compatibility problems between
>
> g++ (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
>
> and
>
> g++ (GCC) 3.3 20030226 (prerelease) (SuSE Linux 8.2)
>
>
> I have a library compiled with g++ version 3.3 on Suse 8.2. The
> library is making heavy use of STL.
>
> When I link this library with a program compiled with gcc 3.2 on
> RedHat 8.0,  the linker complains about the


> undefined reference to `std::__default_alloc_template<(bool)1,
> (int)0>::_S_force_new'

On which system do you execute this?  You need the libstdc++ from GCC
3.3 for this installed on the system.  Or expressed differently:
Executing your program should work on the SuSE system but fail on the
Red Hat system.

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030905/ec777f14/attachment.sig>


More information about the Libstdc++ mailing list