This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Strange error with the most recent libstdc++ snapshot
- To: "Luke Mauldin" <lukem64 at hotmail dot com>
- Subject: Re: Strange error with the most recent libstdc++ snapshot
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 31 Dec 2000 14:12:33 +0100
- Cc: libstdc++ at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <F3027YflPcTHLkP44aG0000bb85@hotmail.com>
"Luke Mauldin" <lukem64@hotmail.com> writes:
| I downloaded the most recent libstdc++ snapshot from libstdc++'s homepage
| and replaced the libstdc++-v3 directory in Redhat's gcc with the snapshot of
| libstdc++ that I downloaded. To rebuild gcc/g++ I instructed it to use
| libstdc++-v3 and during configure it said it was using v3. It built the
| library without any errors and built RPMS for it as well. I installed the
| new gcc/g++ rpms as well as the new libstdc++ RPMS. I have a small c++
| program that I have coded that uses iostream and stdlib and it complies ok
| but when I try to link the program I get a strange error:
| /usr/lib/gcc-lib/i386-redhat-linux/2.96/libstdc++.so: undefined reference to
| '_IO_file_xsgent'
It seems like you're not using the -L command line switch to tell the
compiler where to find the newly installed library...
| /usr/lib/gcc-lib/i386-redhat-linux/2.96/libstdc++.so: undefined reference to
| '_IO_no_init'
| /usr/lib/gcc-lib/i386-redhat-linux/2.96/libstdc++.so: undefined reference to
| '_IO_file_doallocate'
| I have checked in /usr/lib and libstdc++.so points to libstdc++.3.0.0 which
| seems right to me.
What is the result of the following?
nm /usr/lib/libstdc++.so | c++filt | grep _IO_
?
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com