On Thu, Nov 04, 1999 at 01:25:22PM +0100, Wojciech Zabolotny wrote: > Hi All, > > I'm just trying to compile the "snns" program, which uses the MAXFLOAT > constant. The maxfloat is defined in the /usr/include/math.h as: > #define MAXFLOAT FLT_MAX > However the FLT_MAX is not defined at all... > Probably it should be defined in the float.h file, but there is no such file > in my debian system :-( > Is my system damaged?
[EMAIL PROTECTED](10:40am)-~]%locate float.h /usr/lib/gcc-lib/i386-linux/2.95.2/include/float.h [EMAIL PROTECTED](10:40am)-~]%grep FLT_MAX /usr/lib/gcc-lib/i386-linux/2.95.2/include/float.h #undef FLT_MAX_EXP #define FLT_MAX_EXP 128 #undef FLT_MAX #define FLT_MAX 3.40282347e+38F #undef FLT_MAX_10_EXP #define FLT_MAX_10_EXP 38 It should work because math.h seems to include float.h. Ben