This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Where is FLT_MIN_EXP ?


OK. So I have an other question.

Can you tell me why the code below[1] can compile[2] whereas FLT_MIN_EXP isn't defined ?

Thank you.
Regards.

[1]
#include <stdio.h>
#include <float.h>
int main( int argc, char* argv[] )
{
	printf( "Test for macro FLT_MIN_EXP\n" );
	printf( "Value of macro FLT_MIN_EXP: %d\n", FLT_MIN_EXP );
	printf( "Exit OK" );
}

[2]
$ gcc main.c
$ ./a.out 
Test for macro FLT_MIN_EXP
Value of macro FLT_MIN_EXP: -125

On Mon, 10 Dec 2012 19:05:59 -0500
Mike Frysinger <vapier@gentoo.org> wrote:

> On Monday 10 December 2012 15:09:29 YuGiOhJCJ Mailing-List wrote:
> > I am cross compiling a source code with gcc-4.7.1 (binutils-2.22,
> > gcc-4.7.1, mingwrt-3.20-2 and w32api-3.17).
> 
> you aren't using glibc.  you're using mingw.  please seek help from the mingw 
> community.
> -mike


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]