delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/23/07:57:23

Date: Wed, 23 Jun 1999 11:41:49 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Jeffrey R Bradberry <jbradbe2 AT iusb DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: Persistent problem with environment variable
In-Reply-To: <Pine.LNX.3.96.990622123918.19074C-100000@oit1.iusb.edu>
Message-ID: <Pine.SUN.3.91.990623114017.13893W-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


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