From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11071 invoked by alias); 7 Aug 2014 09:11:13 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 11021 invoked by uid 89); 7 Aug 2014 09:11:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f41.google.com Received: from mail-la0-f41.google.com (HELO mail-la0-f41.google.com) (209.85.215.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 07 Aug 2014 09:11:10 +0000 Received: by mail-la0-f41.google.com with SMTP id s18so3307535lam.0 for ; Thu, 07 Aug 2014 02:11:07 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.112.93.75 with SMTP id cs11mr1120281lbb.82.1407402667197; Thu, 07 Aug 2014 02:11:07 -0700 (PDT) Received: by 10.112.94.70 with HTTP; Thu, 7 Aug 2014 02:11:07 -0700 (PDT) In-Reply-To: <20140807023433.b3c167480b7dc1e1a9cde717@laposte.net> References: <20140807023433.b3c167480b7dc1e1a9cde717@laposte.net> Date: Thu, 07 Aug 2014 09:11:00 -0000 Message-ID: Subject: Re: error: 'LDBL_MIN_EXP' undeclared From: Jonathan Wakely To: YuGiOhJCJ Mailing-List Cc: gcc-help Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00049.txt.bz2 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.