[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: g++ 3.0



On Sun, Jul 08, 2001 at 11:01:52PM +0200, Robert Bihlmeyer wrote:

> I read on -devel that compiling packages with g++ 3 is problematic
> since they will not correctly link with C++ libraries built with an
> older compiler. I figure this will not be a problem for my package
> because it does not depend on any C++ libraries other than libstdc++,
> which should be ok. Normal C libraries are no bother, I assume. Is
> this correct?

If the problem occurs only on certain architectures, you may want to try it
yourself on as many as possible before switching entirely to g++-3.0.  On some
Debian architectures, 3.0 is already the default compiler (see the source for
gcc-defaults, I think).  If those are the same architectures where your package
has problems, then there is no problem for Debian.

As long as it doesn't link against any other C++ libraries, it should work,
yes.  Whether or not this is a good idea, I'm not sure.  There are issues with
g++-3.0 other than ABI compatibility (such as debugging).  It seems to be
available on all platforms, though, so it might be worth a try if it turns out
to be necessary.  It might be wise to restrict the change to the problematic
architectures, though.

-- 
 - mdz



Reply to: