[geos-devel] Build errors in StringTokenizer.cpp with 3.5.0/trunk/branch-3.5
Jeff McKenna
jmckenna at gatewaygeomatics.com
Wed Jan 27 10:06:12 PST 2016
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).
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
More information about the geos-devel
mailing list