[geos-devel] Build errors in StringTokenizer.cpp with 3.5.0/trunk/branch-3.5

Even Rouault even.rouault at spatialys.com
Wed Jan 27 10:52:18 PST 2016


Le mercredi 27 janvier 2016 19:06:12, Jeff McKenna a écrit :
> Hello everyone,
> 
> Compiling on Windows with Visual Studio 2008 I get the same errors with
> the 3.5.0 release, SVN trunk, and branch 3.5, but I can't find any
> mention of this problem in Trac or on this list.  Here is the error:
> 
> ****
> StringTokenizer.cpp
> io\StringTokenizer.cpp(60) : error C2039: 'numeric_limits' : is not a
> member of 'std'
> io\StringTokenizer.cpp(60) : error C2065: 'numeric_limits' : undeclared
> identifier
> io\StringTokenizer.cpp(60) : error C2062: type 'double' unexpected
> io\StringTokenizer.cpp(60) : error C2039: 'infinity' : is not a member
> of '`global namespa
> ce''
> io\StringTokenizer.cpp(62) : error C2039: 'numeric_limits' : is not a
> member of 'std'
> io\StringTokenizer.cpp(62) : error C2065: 'numeric_limits' : undeclared
> identifier
> io\StringTokenizer.cpp(62) : error C2062: type 'double' unexpected
> io\StringTokenizer.cpp(62) : error C2039: 'infinity' : is not a member
> of '`global namespa
> ce''
> io\StringTokenizer.cpp(67) : error C2039: 'numeric_limits' : is not a
> member of 'std'
> io\StringTokenizer.cpp(67) : error C2065: 'numeric_limits' : undeclared
> identifier
> io\StringTokenizer.cpp(67) : error C2062: type 'double' unexpected
> io\StringTokenizer.cpp(67) : error C2039: 'quiet_NaN' : is not a member
> of '`global namesp
> ace''
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 9.0\VC\BIN\cl.EXE"'
> 
> : return code '0x2'
> 
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 9.0\VC\BIN\nmake.EXE
> "' : return code '0x2'
> Stop.
> ****
> 
> If I had to guess, I would guess that these are C89 issues (not
> declaring variables at beginning of the block).

C89 and .cpp file, no ;-) I'd rather bet that #include <limits> would fix that

> 
> -jeff

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the geos-devel mailing list