compile error on latest CVS mapogcfilter.c

Frank Warmerdam warmerdam at POBOX.COM
Thu Oct 27 22:24:34 EDT 2005


On 10/27/05, Kralidis,Tom [Burlington] <Tom.Kralidis at ec.gc.ca> wrote:
> compile error on latest CVS:
>
> File: mapogcfilter.c:
>
> Error:
>
> gcc -c -g -O2 -fPIC -Wall  -DENABLE_STDERR_DEBUG -DIGNORE_MISSING_DATA
> -DNEED_STRLCAT  -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR
> -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR     -DUSE_GD_GIF -DUSE_GD_PNG
> -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR
> -DGD_HAS_GETBITMAPFONTS -DUSE_PDF   -DUSE_OGR -DUSE_GDAL  -DUSE_ICONV
> -DUSE_POSTGIS    -DUSE_ZLIB -I/usr/local/include -I/usr/local/include
> -I/usr/local/include      -I/usr/local/include
> -I/usr/local/pgsql/include  -I/usr/local/include
> -I/usr/local//include mapogcfilter.c -o mapogcfilter.o
> mapogcfilter.c: In function `FLTApplyFilterToLayer':
> mapogcfilter.c:1109: error: `layer' undeclared (first use in this
> function)
> mapogcfilter.c:1109: error: (Each undeclared identifier is reported only
> once
> mapogcfilter.c:1109: error: for each function it appears in.)
> mapogcfilter.c:1116: error: `bOblySpatialFilter' undeclared (first use
> in this function)
> mapogcfilter.c: In function `FLTLayerApplyCondSQLFilterToLayer':
> mapogcfilter.c:1138: error: `bOblySpatialFilter' undeclared (first use
> in this function)
> mapogcfilter.c: In function `FLTLayerApplyPlainFilterToLayer':
> mapogcfilter.c:1153: warning: unused variable `sttt'
> make: *** [mapogcfilter.o] Error 1

Tom,

I have fixed this, and a link error related to some OGR
function prototypes being needed in map.h.

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    | Geospatial Programmer for Rent



More information about the mapserver-dev mailing list