libstdc++ problems /w egcs-2.91.52 on sparc-linux?
Kevin Milans
kmilans@CapAccess.org
Tue Jul 28 15:12:00 GMT 1998
Hello,
After a clean build of egcs-2.91.52 from CVS on sparclinux, any
linking with libstdc++ complains about an undefined reference to
`filebuf virtual table'. I'm using GNU binutils v. 2.9.1 (with BFD
2.9.1.0.4). For example, the file test.cc
#include <iostream.h>
int main (void)
{
cout << "Testing" << endl;
}
will not link correctly. The output of g++ -o test test.cc is:
/usr/lib/libstdc++.a(stdstrbufs.o)(.data+0x64): undefined reference to
`filebuf virtual table'
/usr/lib/libstdc++.a(stdstrbufs.o)(.data+0xcc): undefined reference to
`filebuf virtual table'
/usr/lib/libstdc++.a(stdstrbufs.o)(.data+0x134): undefined reference to
`filebuf virtual table'
collect2: ld returned 1 exit status
The same thing has happened with the egcs release 1.0.3a. I'm a bit
confused because this happens for me for all versions of egcs on
sparclinux, yet it seems a big enough problem that it should be
either working or at least documented somewhere.
Looking at this library with nm produces:
# nm /usr/lib/libstdc++.a | grep filebuf | grep vt
U __vt_7filebuf
U _vt.7filebuf
00000000 R __vt_7filebuf
#
Anyone know anything about this, any suggestions?
Thanks,
Kevin Milans
More information about the Gcc
mailing list