help-gplusplus
[Top][All Lists]
Advanced

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

howto produce error when linking with different versions of libstdc++


From: David
Subject: howto produce error when linking with different versions of libstdc++
Date: Thu, 19 Mar 2009 08:01:54 -0700 (PDT)
User-agent: G2/1.0

I have many applications to link with many third party libraries and I
want to ensure that we don't mistakenly let a binary link both libstdc+
+.so.5 and libstdc++.so.6 (i.e. mix libraries built with different
versions of the compiler).

Is it possible to force the link to produce an error instead of a
warning for this condition? What would the linker options look like to
do so?

We are building on SUSE Linux on both SLES9 (gcc3.3.3) and 10
(gcc4.1.3).

Here's an example of the warning:
    /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-
linux/bin/ld: warning: libstdc++.so.5, needed by /tc_ref/TOOLBOX/lnx64/
TcCrypto/1.1.1/lib/libTcCrypto.so, may conflict with libstdc++.so.6

Thanks


reply via email to

[Prev in Thread] Current Thread [Next in Thread]