set_new_handler change

Jeffrey A Law law@cygnus.com
Mon Aug 24 10:48:00 GMT 1998


  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



More information about the Gcc mailing list