This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
undefined reference to `__cxa_bad_typeid'
- To: gcc-bugs at gcc dot gnu dot org
- Subject: undefined reference to `__cxa_bad_typeid'
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Mon, 27 Nov 2000 13:50:34 -0500 (EST)
I reported this problem before but it was buried in a message with a
different subject. I have noted it under i686 linux and hppa hpux 10.20
when the configure option --disable-libstdcxx-v3 is used. It affects
most g++ compilations. Here is an example:
Running ../../../../libio/testsuite/libio.tests/hounddog.exp ...
Executing on host: /home/dave/gnu/gcc-2.97/objdir/gcc/xgcc -B/home/dave/gnu/gcc-2.97/objdir/gcc/ ../../../../libio/testsuite/../tests/hounddog.cc -O3 -I.. -I../../../../libio/testsuite/.. -nostdinc++ -I/home/dave/gnu/gcc-2.97/libstdc++ -I/home/dave/gnu/gcc-2.97/libstdc++/stl -L/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu//libstdc++ -L/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu//libiberty -L/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu//libiberty -g -lstdc++ -liberty -lm -pthread -o /home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/hounddog (timeout = 300)
spawn /home/dave/gnu/gcc-2.97/objdir/gcc/xgcc -B/home/dave/gnu/gcc-2.97/objdir/gcc/ ../../../../libio/testsuite/../tests/hounddog.cc -O3 -I.. -I../../../../libio/testsuite/.. -nostdinc++ -I/home/dave/gnu/gcc-2.97/libstdc++ -I/home/dave/gnu/gcc-2.97/libstdc++/stl -L/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu//libstdc++ -L/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu//libiberty -L/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu//libiberty -g -lstdc++ -liberty -lm -pthread -o /home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/hounddog
/tmp/cclJMqwD.o: In function `my_scan(streambuf *)':
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:36: undefined reference to `streammarker::streammarker(streambuf *)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:40: undefined reference to `streammarker::~streammarker(void)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:42: undefined reference to `streambuf::seekmark(streammarker &, int)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:45: undefined reference to `streammarker::~streammarker(void)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:47: undefined reference to `streambuf::seekmark(streammarker &, int)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:50: undefined reference to `streammarker::~streammarker(void)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:52: undefined reference to `streambuf::seekmark(streammarker &, int)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:53: undefined reference to `streammarker::~streammarker(void)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:53: undefined reference to `streammarker::~streammarker(void)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:53: undefined reference to `terminate(void)'
/tmp/cclJMqwD.o: In function `main':
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:83: undefined reference to `ostream::operator<<(char const *)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:83: undefined reference to `ostream::operator<<(int)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:83: undefined reference to `ostream::operator<<(char const *)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:83: undefined reference to `ostream::operator<<(int)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:80: undefined reference to `ostream::operator<<(char const *)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:65: undefined reference to `__builtin_vec_new'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libio/testsuite/../../../../libio/testsuite/../tests/hounddog.cc:67: undefined reference to `ostream::operator<<(char const *)'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu//libstdc++/libstdc++.a(exception.o): In function `_ZNK9exception4whatEv':
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libstdc++/../../../libstdc++/exception.cc:403: undefined reference to `__cxa_bad_typeid'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu//libstdc++/libstdc++.a(tinfo2.o): In function `_ZNK10__cxxabiv117__pbase_type_info10__do_catchEPK9type_infoPPvj':
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libstdc++/../../../libstdc++/tinfo2.cc:176: undefined reference to `__cxa_bad_typeid'
/home/dave/gnu/gcc-2.97/objdir/i686-pc-linux-gnu/libstdc++/../../../libstdc++/tinfo2.cc:176: undefined reference to `__cxa_bad_typeid'
collect2: ld returned 1 exit status
compiler exited with status 1
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)