WMS/WFS client support does not compile in SVN
Andreas Albarello
andreas.albarello at TERRITORIUMONLINE.COM
Wed Aug 29 09:56:24 EDT 2007
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,
--
--------------------------------------------------------------------
Andreas Albarello
Analysis & SW Development
Territorium Online srl/GmbH
Via Buozzi/Buozzistraße 12 - I 39100 Bolzano/Bozen
email: andreas.albarello at territoriumonline.com
web: www.territoriumonline.com
--------------------------------------------------------------------
More information about the mapserver-dev
mailing list