Mail Archives: djgpp/1997/12/12/14:16:39
Fabrice ILPONSE wrote:
>
> Arie Ori wrote:
> >
> > For some reason, the DJGPP is not defined in my computer even though
> > I wrote "set djgpp=c:/djgpp/djgpp.env" in my autoexec.
> > (Every time there's a #ifdef DJGPP sentence the result is false).
> > Anyway, I can't make the allegro library file bcoz of this.
> > Can anybody help me???
> >
>
> Hum!! I think #ifdef DJGPP is in an C file. If so this DJGPP
> has nothing to do with the set djgpp. #ifdef is a pre-processor
> directive. For the condition to be true, you must use #define
> somewhere in the C file before #ifdef.
the pre-defined preprocessor directive identifying djgpp is __DJGPP__
(this is actually in the faq, but i do not have the reference right
now.)
see if the following works:
#include <stdio.h>
int main(void)
{
#ifdef __DJGPP__
printf("DJGPP version: %d", __DJGPP__);
#endif
return 0;
}
i.e. prints DJGPP version: 2 on the screen.
--
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA
mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/
- Raw text -