delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/07/01/02:50:31

From: Andris Pavenis <pavenis AT latnet DOT lv>
To: Martin Rehak <rehakm2 AT feld DOT cvut DOT cz>, djgpp AT delorie DOT com
Subject: Re: float.h problem
Date: Tue, 1 Jul 2003 09:36:07 +0300
User-Agent: KMail/1.5.2
References: <3F00CCA9 DOT 8050006 AT feld DOT cvut DOT cz>
In-Reply-To: <3F00CCA9.8050006@feld.cvut.cz>
MIME-Version: 1.0
Message-Id: <200307010936.07802.pavenis@latnet.lv>
Reply-To: djgpp AT delorie DOT com

On Tuesday 01 July 2003 02:50, Martin Rehak wrote:
> I upgraded to GCC 3.3 package now trying to compile new Allegro 4.11.0
> but got error message that file poly3d.c and scene3d.c including float.h
> missing RC_CHOP, MCW_PC... constant
> (line: old87 = _control87(PC_24 | RC_CHOP, MCW_PC | MCW_RC);)
>
> This was defined in old float.h (from GCC 3.2.3) but not in new header.
> So I solved it with this ditry method:
> 1) rename old (GCC 3.2.3) float.h to floatold.h
> 2) to new float.h I added line #include floatold.h
> then the two mentioned Allegro's C files compiled succesfully.
>
> But I have other problems with compilling Allegro due to
> conio.h error at line 74.

This was problem with 15th May build:

GCC-3.3 has it own float.h and as result DJGPP one was not included. 

It was fixed in later update, which I uploaded at end of previous week, but 
have not yet announced. There I editted GCC float.h to include also 
DJGPP one: I put

#ifdef __DJGPP__
#include_next  <float-h>
#endif

in GCC copy of float.h. Please look whether You have this in 
lib/gcc-lib/djgpp/3.3/include/float.h

Andris

- Raw text -


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