Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!spool.mu.edu!samsung!sol.ctr.columbia.edu!trantor.harris-atd.com!jedi!mvm From: mvm@jedi.harris-atd.com (Matt Mahoney) Newsgroups: comp.lang.c++ Subject: Re: signal in C++ Keywords: signal Message-ID: <6141@trantor.harris-atd.com> Date: 26 Apr 91 14:10:22 GMT References: <6476@male.EBay.Sun.COM> Sender: news@trantor.harris-atd.com Reply-To: mvm@jedi.UUCP (Matt Mahoney) Organization: CAE Design Center, Harris Corp., Melbourne, Fl. Lines: 18 In article <6476@male.EBay.Sun.COM> chrisdc@mykids.EBay.Sun.COM (chris chang) writes: > >I am having a problem with using signal in C++. I get a undefined >symbol error message for '_signal__FiPFv_v' when I link the program. >Any ideas? Also, what's the proper way to declare a function >prototype for signal? > Try this: extern "C" void (*signal(int sig, void (*handler)(int)))(int); or more simply #include -------------------------------- Matt Mahoney, mvm@epg.harris.com #include