delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/04/14:53:22

Date: Thu, 04 Jan 2001 21:51:22 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Florian X" <dos DOT fire AT aon DOT at>
Message-Id: <7458-Thu04Jan2001215122+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: djgpp AT delorie DOT com
In-reply-to: <3a54946c$0$25060@SSP1NO25.highway.telekom.at> (dos.fire@aon.at)
Subject: Re: parse error in stdlib ??
References: <3a54946c$0$25060 AT SSP1NO25 DOT highway DOT telekom DOT at>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Florian X" <dos DOT fire AT aon DOT at>
> Newsgroups: comp.os.msdos.djgpp
> Date: Thu, 4 Jan 2001 16:19:29 +0100
> 
> I got this error
> **********
> E:\sealsrc>gcc -c mouse.c -o mouse.o
> In file included from object.h:135,
>                  from mouse.h:35,
>                  from mouse.c:35:
> filter.h:60: warning: `#ifdef' argument starts with a digit
> In file included from allegro.h:56,
>                  from alltogrx.h:35,
>                  from mouse.h:36,
>                  from mouse.c:35:
> e:/djgpp/include/stdlib.h:44: parse error before `int'
> e:/djgpp/include/stdlib.h:56: parse error before `long'
> **********

The two lines from stdlib which the compiler complains about define
prototypes of `abs' and `labs' functions.  I'm guessing that one of
the headers included before that, or the source before inclusion of
stdlib.h, defined macros or typedefs with the same names.

If you cannot figure this out, invoke the compile with the -save-temps
switch and look at the .ii file: you will see what the compiler gets
in stdlib.h, and I'm sure you will see the reason right away.

- Raw text -


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