PROBLEM SOLVED: Re: Error Building MapScript on WIN32 - Unresolved references: msSLDApplySLD, msSLDApplySLDURL, msSLDGenerateSLD
Bob Bruce
covariance at SHAW.CA
Sat Apr 30 18:46:32 PDT 2005
This is solved by turning on the GDAL=-DUSE_GDAL option in the main
mapserver nmake.opt file.
This is caused by the following statements in the mapogcsld.h file:
#ifdef USE_OGR
#endif
all of the function declarations in this file are enclosed in this block,
including the msSLDApplySLD, msSLDApplySLDURL, msSLDGenerateSLD which were
undefined references in the MapScript link. Turning on the USE_OGR option
allowed all of these functions to be defined in the compile of the
mapscript_i.c file and everything compiled and linked OK.
My question: Is this correct to enclose the entire range of function
definitions within this block, or (as the comments suggest) should only the
following lines should be put within this block?:
#include "map.h"
/* There is a dependency to OGR for the MiniXML parser */
#include "cpl_minixml.h"
Bob Bruce, Winnipeg, Manitoba
More information about the MapServer-users
mailing list