Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!cse!texas!manohar From: manohar@csl.dl.nec.com (mun o her) Newsgroups: comp.lang.c++ Subject: How do you use signal() function in C++ programs ? Message-ID: <1991Jun17.212236.3281@csl.dl.nec.com> Date: 17 Jun 91 21:22:36 GMT Sender: manohar@csl.dl.nec.com (mun o her) Organization: NEC America, C & C Software Development Lab Lines: 47 I hope this is not a FAQ. PROBLEM: I am trying to make a signal(SIGPIPE,sghandfunc) call in a C++ program. The SCenario : #include -- -- sghandfunc() { < signal handler function > } void myprog() { < an exerpt from the prog > signal(SIGPIPE,sghandfunc); > When I compile this program , I am getting an error message that " signal( ) does not match any of the defined functions (something on these lines> I even tried declaring extern "C" signal(int, FUNC). Ofcourse I did the appropriate typedef stuff to make FUNC as a pointer to a function. Even this didnot work. Any help will be greatly appreciated. Manohar -- My Life is like a boat in a dry river. I didnot want to drag the boat out, I wanted to give it a river. ----Boris Pasternak's(of Dr. Zhivago's fame) letter to Mayor Kowaski Manohar S. Gudavalli ||Internet: manohar@csl.dl.nec.com