This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++.so conflict
- From: Ian Lance Taylor <iant at google dot com>
- To: mahmoodn <nt_mahmood at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 30 Nov 2007 10:43:59 -0800
- Subject: Re: libstdc++.so conflict
- References: <14042401.post@talk.nabble.com>
mahmoodn <nt_mahmood@yahoo.com> writes:
> I get the following message when I want to install a library that use QT. I
> myself have no idea....!!:(
> Testing for QT (Unix (multi-threaded)) ...
> **********************************
> ** **
> ** Linking or execution failed **
> ** =================== **
> ** **
> ** You will be shown a log now ... **
> ** Please press <ENTER> to continue. **
> **********************************
> Linker call:
> --------------
> /usr/bin/g++ -o ./tmp_test ./tmp_test.o -L/usr/lib/qt-3.3/lib
> -L/usr/lib/qt-3.3/lib -Wl,-R/usr/lib/qt-3.3/lib:/usr/lib/qt-3.3/lib
> -lqt-mt -lm
>
> Got the following error messages:
> ---------------------------------
> /usr/bin/ld: warning: libstdc++.so.6, needed by
> /usr/lib/qt-3.3/lib/libqt-mt.so, may conflict with libstdc++.so.5
> /usr/lib/libstdc++.so.6: undefined reference to
> `_Unwind_GetIPInfo@GCC_4.2.0'
> collect2: ld returned 1 exit status
>
> What is wrong??
You have a shared library which requires libstdc++.so.6.
Either your compiler, or another shared library, requires
libstdc++.so.5. You neglected to mention which version of the
compiler you are using, so I don't know which.
libstdc++.so.5 and libstdc++.so.6 should not be used in the same
executable.
Ian