This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Linking problems in latest cvs deck.
- To: gcc at gcc dot gnu dot org
- Subject: Re: Linking problems in latest cvs deck.
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Mon, 25 Sep 2000 12:04:18 -0700
I've been unable to reproduce this problem for over a week. Can you
please read this documentation about configuring and building?
http://sources.redhat.com/libstdc++/install.html
Our configure lines are a bit different, but I don't expect this is
the root cause of your problem.
from my config.status file:
/mnt/hd/bliss/src.gcc/configure
--with-gcc-version-trigger=/mnt/hd/bliss/src.gcc/gcc/version.c
--host=i686-pc-linux-gnu --verbose --prefix=/mnt/hd/bliss/H-x86-gcc-3
--enable-debug --enable-libstdcxx-v3 --enable-cshadow-headers
--enable-threads=posix --enable-languages=c,c++ --norecursion
If you can pass 'g++ -v' to your built compiler, you can see what
directories are being searched for the libstdc++ library. You might
want to use nm to look at this binary, and see if it has some of the
basic symbols, such as
std:cout
ie:
%nm -A libstdc++.a | grep cout
libstdc++.a:ios.o: U _3std.cout
libstdc++.a:ios.o: U _3std.wcout
libstdc++.a:stdstreams.o:00000140 B _3std.cout
libstdc++.a:stdstreams.o:00000460 B _3std.wcout
%nm -A --demangle libstdc++.a | grep cout
libstdc++.a:ios.o: U std::cout
libstdc++.a:ios.o: U std::wcout
libstdc++.a:stdstreams.o:00000140 B std::cout
libstdc++.a:stdstreams.o:00000460 B std::wcout
best,
benjamin