g++ 2.95.2 -fhonor-std fails to link std::terminate()
Martin Sebor
marts@att.net
Sun Apr 23 20:03:00 GMT 2000
Hi,
the linker is failing to find std::terminate() when linking exception
code compiled with -fhonor-std. We're currently providing our own
definition of the missing function(s) but, since this is surely a known
problem, I'm wondering whether perhaps there is an option that would let
the linker use the globals.
Thanks
Martin
$ cat test.cpp
int main ()
try { }
catch (...) { }
$ g++ -fhonor-std test.cpp
/tmp/ccyIx02a.o: In function `main':
/tmp/ccyIx02a.o(.text+0x61): undefined reference to
`std::terminate(void)'
collect2: ld returned 1 exit status
More information about the Gcc-bugs
mailing list