Mail Archives: djgpp/2000/06/02/04:40:25
On Fri, 2 Jun 2000, Nimrod Abing wrote:
> Hello. I have a question, and it doesn't seem to be in the DJGPP FAQ
> somewhere. It's about namespaces in C++. Why is it that when I use the
> gcc --honor-std option, the linker complains of unable to resolve an
> external called ``std::terminate()''. The standard ``hello world''
> program compiles without problems, but I am making this program which
> uses the STL included with gpp2952b.zip. Whenever I build it using the
> ``--honor-std'' switch, the linker complains about unresolved externals.
> But when I remove the ``--honor-std'' switch, the program compiles and
> links without any errors. What am I doing wrong? Is it a problem with
> the STL library archive?
You cannot use --honor-std without rebuilding gcc with this option.
About terminate(): it's in libgcc.a and it is built without --honor-std.
To get std::terminate(void) instead libcc.a should be built with
--honor-std. More likely it will be done when --honor-std will be default
in soome future version of gcc (of course You are free to rebuild gcc as
You like...)
Andris
- Raw text -