[geos-devel] [GEOS] #762: Compiling error on cygwin

GEOS geos-trac at osgeo.org
Fri Jan 15 02:49:45 PST 2016


#762: Compiling error on cygwin
------------------------+--------------------------
 Reporter:  jingsam     |      Owner:  geos-devel@…
     Type:  defect      |     Status:  new
 Priority:  major       |  Milestone:  3.5.1
Component:  Default     |    Version:  3.5.0
 Severity:  Unassigned  |   Keywords:
------------------------+--------------------------
 When I tried to compile geos on cygwin, errors occur:

 geos_ts_c.cpp: in fucntion ‘void
 GEOSContextHandle_HS::NOTICE_MESSAGE(std::string, ...)’:
 geos_ts_c.cpp:228:81: error:‘vsnprintf’ undeclared in the context
        int result = vsnprintf(msgBuffer, sizeof(msgBuffer) - 1,
 fmt.c_str(), args);
 ^
 geos_ts_c.cpp: in function ‘void
 GEOSContextHandle_HS::ERROR_MESSAGE(std::string, ...)’中:
 geos_ts_c.cpp:249:81: error:‘vsnprintf’ undeclared in the context
        int result = vsnprintf(msgBuffer, sizeof(msgBuffer) - 1,
 fmt.c_str(), args);


 That may be caused by the non-existence of vsnprintf() which is a c++11
 function.

 g++ version: 4.9.3

--
Ticket URL: <https://trac.osgeo.org/geos/ticket/762>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list