This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: error: 'LDBL_MIN_EXP' undeclared
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: YuGiOhJCJ Mailing-List <yugiohjcj-mailinglist at laposte dot net>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 7 Aug 2014 10:11:07 +0100
- Subject: Re: error: 'LDBL_MIN_EXP' undeclared
- Authentication-results: sourceware.org; auth=none
- References: <20140807023433 dot b3c167480b7dc1e1a9cde717 at laposte dot net>
On 7 August 2014 01:34, YuGiOhJCJ Mailing-List wrote:
> Hello,
>
> I am building a cross compiler (linux 32 bits -> windows 32 bits).
> I have compiled:
> - binutils-2.22
> - gcc-4.8.0
> - w32api library
>
> But when I try to compile mingwrt library, I got an error:
> $ make
> Making `all' in `mingwex'
> make[1]: Entering directory `/home/yugiohjcj/documents/downloads/software/mingwrt-3.20-2-mingw32/mingwex'
> i686-pc-mingw32-gcc -c -g -O2 -Wall -fomit-frame-pointer -I. -I.. -I../include -nostdinc -iwithprefixbefore include -I ../../w32api/include ./math/hypotl.c -o hypotl.o
> ./math/hypotl.c: In function 'hypotl':
> ./math/hypotl.c:63:15: error: 'LDBL_MAX_EXP' undeclared (first use in this function)
> if (exx > LDBL_MAX_EXP)
> ^
> ./math/hypotl.c:63:15: note: each undeclared identifier is reported only once for each function it appears in
> ./math/hypotl.c:68:13: error: 'LDBL_MIN_EXP' undeclared (first use in this function)
> if (exx < LDBL_MIN_EXP)
> ^
> make[1]: *** [hypotl.o] Error 1
> make[1]: Leaving directory `/home/yugiohjcj/documents/downloads/software/mingwrt-3.20-2-mingw32/mingwex'
> make: *** [mingwex] Error 2
>
> What is this undeclared LDBL_MIN_EXP element?
That looks like part of mingw, not GCC.