PDA

View Full Version : Different versions of libstdc++ in one binary



Pascal
15th January 2006, 23:06
Hi,

I have created a little Qt4.01-application, based on (qt-directory)/demos/books on a linux-system. Compiler is gcc, version 4.0.2.

When calling make everything looks fine except...:

"/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: warning: libstdc++.so.5, needed by /usr/local/Trolltech/Qt-4.0.1/lib/libQtGui_debug.so, may conflict with libstdc++.so.6"

Can someone judge if this can jeopardize execution ? Is it possible to get problems while debugging the app with gdb/ddd ?

And do you know how I can get rid of this warning ?

Thanks for your advice
Pascal

jacek
15th January 2006, 23:18
do you know how I can get rid of this warning ?
Probably Qt was linked with older version of libstdc++. Did you upgrade that library after compiling Qt?

Pascal
16th January 2006, 00:11
Probably Qt was linked with older version of libstdc++. Did you upgrade that library after compiling Qt?
Yes I did: Qt4.0.1 on 11/05/2005, SuSE 10.0 an 11/12/2005.
Should I recompile Qt ? (and migrate to Qt4.1 ?)

jacek
16th January 2006, 00:17
Should I recompile Qt ? (and migrate to Qt4.1 ?)
Yes, if you want to get rid of that warning. Take into account that there are a lot of new features and bug fixes in Qt 4.1.

Your current version should work, but if your programs start to behave really strange, you should do an upgrade.

Pascal
16th January 2006, 01:07
thanks a lot, Jacek. I'll follow your advice..tomorrow.
Pascal