This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: set_new_handler change



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]