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

Re: [XaraXtreme-dev] libstdc++5 or 6





--On 02 May 2006 09:26 +0100 Neil Howe <NeilH@xxxxxxxx> wrote:

Luke/Graeme, you both advised that we should stick to using libstdc++5
rather than 6 for Xara LX because installing v6 on v5 based systems was
not straightforward. Please can you explain why this is?

This is another thing that depends on whether you are using a static
build or a dynamic build. If you are expecting a build to work without
an installer, installing libstdc++ v6 on a system without it is going
to be a pain. Even newer systems have v5 on (i.e. even if they use
v6 internally).

However, that limits you to using gcc3.x (where x is small, I think
3.3 though Luke may correct me), which produces worse code than gcc 4.x
and thus is likely to run more slowly.

When we are producing packages, we should thus compile with 4.x, get
faster code, and have a dependency on libstdc++ v6 which the distro tools
will sort out installing right.

Essentially when producing non-package binaries, you have to pitch to
the lowest common denominator. You can be cleverer with package binaries.

If you want a single universal binary I don't really see much of a way
around using 3.x and libstdc++ v5 unless someone can find a way to
completely static link in the v6 library (which will probably involve
changing build systems for any libraries we link in if it's possible
at all).

Alex