WMS/WFS client support does not compile in SVN
Daniel Morissette
dmorissette at MAPGEARS.COM
Wed Aug 29 10:43:05 EDT 2007
Thanks for the report Andreas. I have created a ticket and fixed this in
SVN: http://trac.osgeo.org/mapserver/ticket/2272
Daniel
Andreas Albarello wrote:
> Folks,
>
> this is what I get when I try to compile the latest SVN revision 6733
> (and most likely all previous revisions too) with WMS and WFS client
> support, but without WMS/WFS servers on Windows/VC8:
>
> mapwmslayer.c
> mapwmslayer.c(206) : warning C4013: 'msOWSLookupMetadata' undefined;
> assuming extern returning int
> mapwmslayer.c(207) : warning C4047: '=' : 'const char *' differs in
> levels of indirection from 'int'
> mapwmslayer.c(209) : warning C4047: '=' : 'const char *' differs in
> levels of indirection from 'int'
> [...]
> mapwmslayer.c(441) : warning C4013: 'msOWSParseVersionString' undefined;
> assuming extern returning int
> mapwmslayer.c(461) : error C2065: 'OWS_1_0_8' : undeclared identifier
> mapwmslayer.c(461) : error C2051: case expression not constant
> mapwmslayer.c(462) : error C2065: 'OWS_1_1_0' : undeclared identifier
> mapwmslayer.c(464) : error C2065: 'OWS_1_0_0' : undeclared identifier
> mapwmslayer.c(464) : error C2051: case expression not constant
> mapwmslayer.c(465) : error C2065: 'OWS_1_0_7' : undeclared identifier
> mapwmslayer.c(465) : error C2051: case expression not constant
> mapwmslayer.c(466) : error C2051: case expression not constant
> mapwmslayer.c(467) : error C2065: 'OWS_1_1_1' : undeclared identifier
> mapwmslayer.c(467) : error C2051: case expression not constant
> mapwmslayer.c(497) : warning C4013: 'msOWSGetEPSGProj' undefined;
> assuming extern returning int
> [...]
>
> I was able to fix this by adding
>
> || defined(USE_WMS_LYR) || defined(USE_WFS_LYR)
>
> to line 91 of mapows.h.
>
> Then I got this:
>
> mapwmslayer.obj : error LNK2019: unresolved external symbol
> _msOWSLookupMetadata referenced in function _msBuildWMSLayerURLBase
> mapwfslayer.obj : error LNK2001: unresolved external symbol
> _msOWSLookupMetadata
> mapwmslayer.obj : error LNK2019: unresolved external symbol
> _msOWSGetEPSGProj referenced in function _msBuildWMSLayerURL
> mapwmslayer.obj : error LNK2019: unresolved external symbol
> _msOWSParseVersionString referenced in function _msBuildWMSLayerURL
> mapdraw.obj : error LNK2019: unresolved external symbol
> _msOWSExecuteRequests referenced in function _msDrawWMSLayer
> mapwfslayer.obj : error LNK2001: unresolved external symbol
> _msOWSExecuteRequests
> mapwfslayer.obj : error LNK2019: unresolved external symbol
> _msOWSTerminateOnlineResource referenced in function _msBuildWFSLayerGetURL
> mapwfslayer.obj : error LNK2019: unresolved external symbol
> _msOWSBuildURLFilename referenced in function _msPrepareWFSLayerRequest
> mapwfslayer.obj : error LNK2019: unresolved external symbol
> _msOWSProcessException referenced in function _msWFSLayerWhichShapes
> libmap.dll : fatal error LNK1120: 7 unresolved externals
>
> Fixed this in a similar manner as above, again by adding
>
> || defined(USE_WMS_LYR) || defined(USE_WFS_LYR)
>
> to line 102 of mapows.c. Compiles fine now.
>
> Just thought I'd let you know about this.
>
> Best regards,
--
Daniel Morissette
http://www.mapgears.com/
More information about the mapserver-dev
mailing list