Date: Mon, 13 Jan 1997 15:59:57 +0200 (IST) From: Eli Zaretskii To: Alaric Dailey cc: djgpp AT delorie DOT com Subject: Re: catching a CTRL C / Just for Eli and DJ Delorie In-Reply-To: <5bcg61$eep@nntp.novia.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 13 Jan 1997, Alaric Dailey wrote: > Ok guys here is a good one for you. I recieved a respone to check where > SIGINT was defined and include that .h file (duh, I feel stupid now, why > did I think of that? ) so I did. that header file is , once you > do that the compiler complian s about a double definition for "signal". > If you just do the define "#define SIGINT 295" and add an "exit (0);" to > the end of the terminate function, it compiles and runs perfectly so how > do I avoid the double definition problem when "signal.h" gets included???!?!? GCC also prints both places that define SIGINT, when it complains about multiple definitions. Doesn't the message explain what is the reason for the problem? If you cannot figure it out, please post the exact error message printed by the compiler (should have done that in the first place, btw) and somebody will explain it to you.