[Shapelib] shpdiff.c building, compiling error

Frank Warmerdam warmerdam at pobox.com
Fri Nov 30 07:06:55 PST 2007


laboratorio sig inti wrote:
>   Hi, we are building shapelib to use with mapserver 5, with this recipe:
> 
> http://www.nabble.com/Installing-ShapeLib-and-its-tools-p9172934.html
> 
> almost all compile good... but when I tried to compile shpdiff from:
> 
> http://www.obviously.com/gis/shpdiff/
> 
> We have a lot of warnings, ok, but one error:
> 
> shpdiff.c:355: error: label at end of compound statement
> 
> Is possible to work with shapelib in mapserver 5???, is neccesary to
> do???, there are a new library to do this job???, thanks for any
> advice. We are using debian etch 4.0 r1

Hi,

This appears to be "extra careful" error checking on the part of the compiler.
I would suggest adding a dummy statement after the label as a minimal change.
For instance change this:

"
         jRecord++;

         end:
     }
"

to this:

"
         jRecord++;

         end:
         printf( "" );
     }
"


Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Shapelib mailing list