[mapserver-users] error compilation for mapserver 5.2.1

sandric ionut sandricionut at yahoo.com
Wed Jan 7 02:56:30 PST 2009


Hello:
 
I try to compile mapserver 5.2.1. using Microsoft Visual Studio 2005. I have made the proper modifications to the nmake.opt file and run the compile command as:
 
nmake -f makefile.vc charp
 
After several errors (which I've managed to pass), I've the following error (see bellow)
 
How can I correct this?
 
Thank you in advance
 
Ionut
 
 ...
-DUSE_THREAD    -DIGNORE_MISSING_DATA   -DENABLE_STDERR_DEBUG            -DUSE_
GD_ANTIALIAS       -DUSE_ZLIB    -DUSE_AGG   -DWIN32 -D_WIN32 /c mapraster.c /Fo
mapraster.obj
mapraster.c
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(327) :
 warning C4005: 'TEXT' : macro redefinition
        h:\kit\mapserver-5.2.1\mapfile.h(123) : see previous definition of 'TEXT
'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(343)
: error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(345)
: error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(346)
: error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(357)
: error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(98) :
 warning C4005: 'ERROR' : macro redefinition
        h:\kit\mapserver-5.2.1\mapfile.h(52) : see previous definition of 'ERROR
'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(879)
: error C2061: syntax error : identifier 'SIZEL'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(880)
: error C2061: syntax error : identifier 'szlMillimeters'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(880)
: error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(890)
: error C2061: syntax error : identifier 'szlMicrometers'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(890)
: error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(893)
: error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1103)
 : error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1104)
 : error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1105)
 : error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1106)
 : error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1557)
 : warning C4005: 'TRANSPARENT' : macro redefinition
        h:\kit\mapserver-5.2.1\mapfile.h(130) : see previous definition of 'TRAN
SPARENT'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)
 : error C2146: syntax error : missing ')' before identifier 'lpsize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)
 : error C2061: syntax error : identifier 'lpsize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049)
 : error C2146: syntax error : missing ')' before identifier 'lpsize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049)
 : error C2061: syntax error : identifier 'lpsize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203)
 : error C2146: syntax error : missing ')' before identifier 'lpsz'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203)
 : error C2061: syntax error : identifier 'lpsz'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3204)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212)
 : error C2146: syntax error : missing ')' before identifier 'lpsz'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212)
 : error C2061: syntax error : identifier 'lpsz'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3213)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227)
 : error C2146: syntax error : missing ')' before identifier 'psizl'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227)
 : error C2061: syntax error : identifier 'psizl'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3228)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236)
 : error C2146: syntax error : missing ')' before identifier 'psizl'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236)
 : error C2061: syntax error : identifier 'psizl'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3237)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254)
 : error C2146: syntax error : missing ')' before identifier 'lpSize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254)
 : error C2061: syntax error : identifier 'lpSize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3255)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266)
 : error C2146: syntax error : missing ')' before identifier 'lpSize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266)
 : error C2061: syntax error : identifier 'lpSize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3267)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489)
 : error C2146: syntax error : missing ')' before identifier 'lpsize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489)
 : error C2061: syntax error : identifier 'lpsize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491)
 : error C2146: syntax error : missing ')' before identifier 'lpsize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491)
 : error C2061: syntax error : identifier 'lpsize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727)
 : error C2146: syntax error : missing ')' before identifier 'lpEnhMetaHeader'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727)
 : error C2081: 'LPENHMETAHEADER' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727)
 : error C2061: syntax error : identifier 'lpEnhMetaHeader'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009)
 : error C2146: syntax error : missing ')' before identifier 'lpsz'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009)
 : error C2061: syntax error : identifier 'lpsz'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011)
 : error C2146: syntax error : missing ')' before identifier 'lpsz'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011)
 : error C2061: syntax error : identifier 'lpsz'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016)
 : error C2146: syntax error : missing ')' before identifier 'lpsz'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016)
 : error C2061: syntax error : identifier 'lpsz'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017)
 : error C2146: syntax error : missing ')' before identifier 'lpsz'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017)
 : error C2061: syntax error : identifier 'lpsz'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018)
 : error C2146: syntax error : missing ')' before identifier 'lpsz'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018)
 : error C2061: syntax error : identifier 'lpsz'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4477)
 : error C2061: syntax error : identifier 'SIZEL'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4478)
 : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4531)
 : error C2061: syntax error : identifier 'SIZEL'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4532)
 : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4571)
 : error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4572)
 : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4592)
 : error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4592)
 : fatal error C1003: error count exceeds 100; stopping compilation
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
l.EXE"' : return code '0x2'
Stop.


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090107/bf8d75c4/attachment.htm>


More information about the MapServer-users mailing list