Subject: Re: gcc 3 <-> 2.95, STL & NetBSD
To: None <netbsd-help@netbsd.org>
From: Oscar Fuentes <ofv@wanadoo.es>
List: netbsd-help
Date: 07/09/2003 18:15:18
Thorbjorn Jemander <thje@enea.se> writes:

[snip]

> As for my other question: in an other operating system
> that I used some time ago, most system API:s were C++-based,
> not C-based, and that caused a big problem when gcc moved
> to version 3. This was because some reason I don't quite
> understand. As I remember it was something about a
> calling convention or ABI change between gcc 2 and 3, which
> forced the other OS maker to stay with gcc 2.95 (or break
> binary compatiblity, I think).
>
> Is this also true for NetBSD? If not (I guess not),

The GCC C++ ABI change has nothing to do with the platform. NetBSD is
not an exception. You must recompile all your C++ libraries if you
want to use them with g++ v3.x.

> why is NetBSD shipping with 2.95.3 and not some 3.x version?

Maybe because 2.95.3 is the "recommended" compiler for building the
kernel and other critical pieces of the system.

-- 
Oscar