Xref: news2.mv.net comp.os.msdos.djgpp:3653 From: alexlehm AT rbg DOT informatik DOT th-darmstadt DOT de (Alexander Lehmann) Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP warning: ... locatopn of previous def Date: 9 May 1996 22:43:46 GMT Organization: Technische Hochschule Darmstadt Lines: 32 Message-ID: <4mtsf2$19om@rs18.hrz.th-darmstadt.de> References: <4mt6p0$rog AT d2 DOT tufts DOT edu> NNTP-Posting-Host: hp62.rbg.informatik.th-darmstadt.de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Ulrich Guenther (ugunther AT diamond DOT tufts DOT edu) 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. Well, first of all, it is a warning, not an error, and it is a bit difficult to makeout without the lines previous to the one you included. This is probably a warning about a redefined macro (e.g. min or max) and you should be able to get rid of the warning by surounding your definition with #ifdef, e.g.: #ifdef xxx #define xxx yyy #endif (Of course, you should check if the definition in math.h looks like you want it first). This procedure has the advantage that you get rid of the warning and still have it available when you use a different compiler that doesn't have it. bye, Alexander -- Alexander Lehmann, | "On the Internet, alex AT hal DOT rhein-main DOT de (plain, MIME, NeXT) | nobody knows alexlehm AT rbg DOT informatik DOT th-darmstadt DOT de (plain) | you're a dog."