[geos-devel] C API busted for Windows

Howard Butler hobu at iastate.edu
Fri Nov 10 16:50:56 EST 2006


D:\cvs\PCL\PCL-Core>python setup.py build
running build
running build_py
running build_ext
building 'cartography.geometry._geom' extension
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c 
/nologo /Ox
  /MD /W3 /GX /DNDEBUG -Id:\cvs\buildkit\geos\capi 
-Id:\cvs\buildkit\proj-4.4.9\s
rc -IC:\Python24\include -IC:\Python24\PC /Tccartography/geometry/_geommodule.c
/Fobuild\temp.win32-2.4\Release\cartography/geometry/_geommodule.obj
_geommodule.c
d:\cvs\buildkit\geos\capi\geos_c.h(134) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(151) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(154) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(168) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(174) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(225) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(226) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(227) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(234) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(236) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(239) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(256) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(257) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(258) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(260) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(261) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(262) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(264) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(265) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(266) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(267) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(274) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(277) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(278) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(279) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(344) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(357) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(364) : error C2059: syntax error : 'type'
d:\cvs\buildkit\geos\capi\geos_c.h(373) : error C2059: syntax error : 'type'
cartography\geometry\_geommodule.c(100) : warning C4013: 
'GEOSCoordSeq_create' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(125) : warning C4013: 
'GEOSCoordSeq_clone' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(125) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(179) : warning C4018: '>=' : 
signed/unsigned mismatch
cartography\geometry\_geommodule.c(215) : warning C4018: '>=' : 
signed/unsigned mismatch
cartography\geometry\_geommodule.c(251) : warning C4018: '>=' : 
signed/unsigned mismatch
cartography\geometry\_geommodule.c(284) : warning C4018: '>=' : 
signed/unsigned mismatch
cartography\geometry\_geommodule.c(319) : warning C4018: '>=' : 
signed/unsigned mismatch
cartography\geometry\_geommodule.c(354) : warning C4018: '>=' : 
signed/unsigned mismatch
cartography\geometry\_geommodule.c(482) : warning C4013: 
'GEOSGeom_clone' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(482) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(499) : warning C4013: 
'GEOSGeomFromWKB_buf' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(499) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(520) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(546) : warning C4013: 
'GEOSGeomFromWKT' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(546) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(566) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(613) : warning C4013: 
'GEOSGeom_createPoint' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(613) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(616) : warning C4013: 
'GEOSGeom_createLineString' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(616) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(619) : warning C4013: 
'GEOSGeom_createLinearRing' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(619) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(660) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(675) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(678) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(681) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(721) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(757) : warning C4013: 
'GEOSGeom_createPolygon' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(757) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(776) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(823) : warning C4013: 
'GEOSGeom_createCollection' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(823) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(942) : warning C4013: 
'GEOSEnvelope' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(942) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1272) : warning C4013: 
'GEOSIntersection' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(1272) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1291) : warning C4013: 
'GEOSBuffer' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(1291) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1305) : warning C4013: 
'GEOSConvexHull' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(1305) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1326) : warning C4013: 
'GEOSDifference' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(1326) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1347) : warning C4013: 
'GEOSSymDifference' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(1347) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1362) : warning C4013: 
'GEOSBoundary' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(1362) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1383) : warning C4013: 'GEOSUnion' 
undefined; assuming extern returning int
cartography\geometry\_geommodule.c(1383) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1398) : warning C4013: 
'GEOSPointOnSurface' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(1398) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1413) : warning C4013: 
'GEOSGetCentroid' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(1413) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1694) : warning C4013: 
'GEOSGetGeometryN' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(1694) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1723) : warning C4013: 
'GEOSGetExteriorRing'undefined; assuming extern returning int
cartography\geometry\_geommodule.c(1723) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1785) : warning C4013: 
'GEOSGetInteriorRingN' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(1785) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1806) : warning C4013: 
'GEOSGeom_getCoordSeq' undefined; assuming extern returning int
cartography\geometry\_geommodule.c(1806) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1835) : warning C4018: '<' : 
signed/unsigned mismatch
cartography\geometry\_geommodule.c(1855) : warning C4018: '<' : 
signed/unsigned mismatch
cartography\geometry\_geommodule.c(1923) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1927) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1931) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1935) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1936) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1942) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1943) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1951) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1952) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1960) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1961) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1969) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1970) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1971) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1976) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1977) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1986) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1989) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1994) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(1995) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(2000) : warning C4047: '=' : 
'GEOSGeom' differs in levels of indirection from 'int'
cartography\geometry\_geommodule.c(2001) : warning C4047: '=' : 
'GEOSCoordSeq' differs in levels of indirection from 'int'


The new header file does this in many places which is not valid:

extern GEOSGeometry* GEOS_DLL GEOSGeomFromWKB_buf(const unsigned char 
*wkb, size_t size);

It needs to be (or something like it):
extern GEOS_DLL GEOSGeometry*  GEOSGeomFromWKB_buf(const unsigned 
char *wkb, size_t size);

Input on the signed/unsigned warnings and what's causing them would 
be appreciated.  This module (PCL) wasn't causing them before the 
latest updates to the headers.

Howard




More information about the geos-devel mailing list