This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: set_new_handler change
- To: Gary Thomas <gdt at linuxppc dot org>
- Subject: Re: set_new_handler change
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 24 Aug 1998 11:07:51 -0600
- cc: Jason Merrill <jason at cygnus dot com>, egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <XFMail.980824185820.gdt@linuxppc.org>you write:
> > Yes. set_new_handler is supposed to have C++ linkage.
> >
>
> What should be done with existing apps that were built with the old
> linkage? A most useful example that comes to mind is NetScape. This
> is a case where getting the application built using the new linkage
> may be difficult or impossible.
Write an autoconf test :-0
It should be relatively easy to try and build a trivial test program
which does not enclose it in an extern "C" block, then compile it.
If it fails due to an undefined reference to set_new_handler, then it
needs to be enclosed in an extern "C" block.
jeff