delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/07/19/15:39:22

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10307191935.AA16637@clio.rice.edu>
Subject: Re: libm build problem
To: AndrewCottrell AT swiftdsl DOT com DOT au (Andrew Cottrell)
Date: Sat, 19 Jul 2003 14:35:23 -0500 (CDT)
Cc: djgpp-workers AT delorie DOT com
In-Reply-To: <000001c34db9$3413d7b0$0101a8c0@acp42g> from "Andrew Cottrell" at Jul 19, 2003 03:47:05 PM
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> In include\libc\ieee.h is the following typedef defined?
> typedef union
> {
>   float f;
>   long  l;
> } _float_long_union;

Yes.

> If the typedef is included in ieee.h if you change the ieee.h to always
> define it then does it work? If so then looks like one of the #ifndef's =
> are a problem.

I removed the ifdef's so it is always included and it still fails to
compile.

I preprocessed the file, and the problem is that float z; is a 
declaration, and it's being done AFTER an assignment.  So all the files
doing this need to be changed so they are legal C so they will compile.

- Raw text -


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