delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/10/20:20:47

Xref: news2.mv.net comp.os.msdos.djgpp:3680
From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP warning: ... locatopn of previous def
Date: Fri, 10 May 1996 16:06:45 -0700
Organization: Alcyone Systems
Lines: 29
Message-ID: <3193CC05.6B945E02@alcyone.com>
References: <4mt6p0$rog AT d2 DOT tufts DOT edu>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ulrich Guenther wrote:
> 
> invoking djgpp2 (just installed) I get the error
> 
> "c:/djgpp/include/math.h:57: warning: this is the location of the
> previous definition"
> 
> The prg runs anyway.

Without showing the lines that are generating this warning (_not_ an error),
it's hard to say exactly what you've done.

I suspect you've redefined a macro (such as abs) that is defined in <math.h>,
and the compiler is telling you that you've done this.  This is not an error,
just a polite warning that you might be doing something unintentional.

If that's the case, just surrounding the macro definition in conditional
preprocessing statements:

#if defined(abs)
    #define abs(x) /* ... */
#endif

-- 
Erik Max Francis &tSftDotIotE && http://www.alcyone.com/max && max AT alcyone DOT com
San Jose, California, U.S.A. && 37 20 07 N 121 53 38 W && the 4th R is respect
H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- && 1love && folasade
Omnia quia sunt, lumina sunt. && Dominion, GIGO, GOOGOL, Omega, Psi, Strategem
"Out from his breast/his soul went to seek/the doom of the just." -- _Beowulf_

- Raw text -


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