[plug] C++ errors

Andrew Pamment pamment at iinet.net.au
Sun Jun 1 19:19:24 WST 2003


On Sun, 2003-06-01 at 18:44, James Devenish wrote:
> In message <1054462838.1531.9.camel at abbey>
> on Sun, Jun 01, 2003 at 06:20:43PM +0800, Andrew Pamment wrote:
> > * libtool: link: cannot find the library
> > `/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/libstdc++.la'
> [...]
> > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libstdc++.la
> 
> What goes `gcc -v` say? (Does the "specs" line make sense?) Are you

andrew at abbey andrew $ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/specs
Configured with: /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.2
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info --enable-shared
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib
--enable-languages=c,c++,ada,f77,objc,java --enable-threads=posix
--enable-long-long --disable-checking --enable-cstdio=stdio
--enable-clocale=generic --enable-__cxa_atexit
--enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext
Thread model: posix
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)
andrew at abbey andrew $


> *sure* it is not linking against any libraries that require 3.2.2's
> libstdc++? You might need to check the dependencies of your app. (Also,
> have a look at the `ldd` tool).

Very sure. I tried ldd on some qt libraries which was compiled with gcc
3.2.2 and it said that it was linked libstdc++ in
/usr/lib/i686-pc-linux-gnu/3.2.3/  

> PS. If you have compiled apps using 3.2.2 and now try to run them after
> uninstalling 3.2.2's libstdc++.so, you may find that the apps don't run
> any more.

all my apps apart from man and db3 were compiled with gcc 3.2.2 and I
haven't had any problems, apart from kdevelop being dumb. I've grepped
through all my files in my project and can't find any references to the
old libstdc++

seems that when I try and compile stuff even not my own project it still
tries to link to the old libstc++

thanks
Andrew

-- 
Andrew Pamment <pamment at iinet.net.au>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20030601/7d1b5fb4/attachment.pgp>


More information about the plug mailing list