[postgis-users] compile error in CVS

Robert W. Burgholzer rburghol at vt.edu
Mon Dec 1 14:51:49 PST 2003


pgsql2shp.c is throwing an error in the last stages of compile on Redhat 7.3, 
with Postgres 7.3.3.

The error is as follows:

pgsql2shp.c: In function `create_multipolygon3D_WKB':
pgsql2shp.c:1628: parse error before `nrings'
pgsql2shp.c:1646: `nparts' undeclared (first use in this function)

and occurs during compilation of the folowing line(s):

         SHPObject *obj;
         obj = (SHPObject *)malloc(sizeof(SHPObject));

change it to:
 SHPObject *obj = (SHPObject *)malloc(sizeof(SHPObject));

and it compiles OK (I think). Totally unsure as to why this latter code does 
not throw an error. Any insights?

r.b.

Robert W. Burgholzer
rburghol at veetee dot edu
History of Nutrition: "Buddha probably consumed a high-carb diet."




More information about the postgis-users mailing list