Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#766 closed defect (fixed)

Patch for StringTokenizer.cpp to include std::numeric

Reported by: jmckenna Owned by: geos-devel@…
Priority: major Milestone: 3.5.1
Component: Build/Install Version: 3.5.0
Severity: Unassigned Keywords:
Cc:

Description

The following compile error occurs on Windows with Visual Studio 2008, with the GEOS 3.5.0 release, with trunk, and with branch 3.5:

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.

Attachments (1)

stringtokenizer.patch (278 bytes ) - added by jmckenna 8 years ago.
add <limits> header

Download all attachments as: .zip

Change History (5)

by jmckenna, 8 years ago

Attachment: stringtokenizer.patch added

add <limits> header

comment:1 by strk, 8 years ago

Component: DefaultBuild/Install
Resolution: fixed
Status: newclosed

Thanks Jeff, applied to 3.5 branch (for 3.5.1) with r4143 and to trunk (for 3.6.0) with r4142

comment:2 by Sandro Santilli <strk@…>, 7 years ago

In 61b38e4/git:

Include <limits> in StringTokenizer

Patch by Jeff Mckenna
See #766

git-svn-id: http://svn.osgeo.org/geos/trunk@4142 5242fede-7e19-0410-aef8-94bd7d2200fb

comment:3 by Sandro Santilli <strk@…>, 7 years ago

In 61b38e4/git:

Include <limits> in StringTokenizer

Patch by Jeff Mckenna
See #766

git-svn-id: http://svn.osgeo.org/geos/trunk@4142 5242fede-7e19-0410-aef8-94bd7d2200fb

comment:4 by Sandro Santilli <strk@…>, 7 years ago

In 61b38e4/git:

Include <limits> in StringTokenizer

Patch by Jeff Mckenna
See #766

git-svn-id: http://svn.osgeo.org/geos/trunk@4142 5242fede-7e19-0410-aef8-94bd7d2200fb

Note: See TracTickets for help on using tickets.