[Gdal-dev] compilation problems on Slackware machine [update]

Frank Warmerdam fwarmerdam at gmail.com
Tue Mar 15 03:02:50 EST 2005

On Mon, 14 Mar 2005 16:45:26 -0800, Dylan Beaudette
<dylan at iici.no-ip.org> wrote:
> 3. Errors returned from 'make'
> -------------------------------------
> [...]
> g++     -c -o thinplatespline.o thinplatespline.cpp
> thinplatespline.cpp: In member function `int VizGeorefSpline2D::solve()':
> thinplatespline.cpp:214: `FLT_MIN' undeclared (first use this function)
> thinplatespline.cpp:214: (Each undeclared identifier is reported only once for
>    each function it appears in.)
> thinplatespline.cpp:214: `FLT_MAX' undeclared (first use this function)
> make[1]: *** [thinplatespline.o] Error 1
> make[1]: Leaving directory `/home/dylan/src/gdal-1.2.6/alg'
> make: *** [core-target] Error 2
> -------------------------------------


The thinplatespline.cpp file attempts to include either float.h or
values.h if they are available (as determined by configure). 
Does your gdal/port/cpl_config.h include #defines for 

I have altered thinplatespline.cpp to include the following
optional definition after the attempt to include float.h and values.h:

#ifndef FLT_MAX
#  define FLT_MAX 1e+37
#  define FLT_MIN 1e-37

You can apply the same change to your local version. 

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the Gdal-dev mailing list