www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/13/09:30:51

Date: Mon, 13 Jan 1997 15:59:57 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Alaric Dailey <alaric AT oasis DOT novia DOT net>
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: <Pine.SUN.3.91.970113155536.10602C-100000@is>
MIME-Version: 1.0

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 <signal.h>, 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. 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019