[postgis-users] compile error in CVS

strk strk at keybit.net
Tue Dec 2 01:43:52 PST 2003


You can actually completely remove that line.
Its garbage from previous versions.

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

--strk;

rburghol wrote:
> 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."
> 
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list