This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Strange error with the most recent libstdc++ snapshot


"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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]