Mail Archives: djgpp/1999/06/23/07:57:23
On Tue, 22 Jun 1999, Jeffrey R Bradberry wrote:
> C:\djgpp\allegro>make
> Compiling Allegro. Please wait...
> gcc -I. -Isrc -Iobj/djgpp -Wall -Wno-unused -m486 -O3 -ffast-math
> -fomit-frame-pointer -o obj/djgpp/allegro.o -c src/allegro.c
> In file included from src/internal.h:23,
> from src/allegro.c:33:
> allegro.h:28: #error Allegro can only be used with djgpp
> In file included from src/internal.h:28,
> from src/allegro.c:33:
> src/linux/internli.h:24: #error This file should only be used by the linux
> version of Allegro
This happens because the DJGPP symbol (not environment variable!) is
not defined when the prerocessor runs. The environment has nothing to
do with this.
You should have been able to find it out yourself, by looking at the
offending source files. Here's what internal.h says near line 28:
#ifdef DJGPP
#include "interndj.h"
#else
#include "internli.h"
#endif
This clearly says that it will include "interndj.h", the right header,
if the DJGPP symbol is #define'd. This symbol is defined by the specs
file, which is part of the DJGPP distribution. So you need to find
out what went wrong with that file.
You should have told here from the very beginning that the problem is
with building Allegro, and you should have posted the exact error
message. Then the process of finding out the real reason for your
problem would have been much shorter and less painful.
- Raw text -