Fw: [mapserver-users] error compilation for mapserver 5.2.1
sandric ionut
sandricionut at yahoo.com
Thu Jan 8 00:17:32 PST 2009
Sorry:
And the nmake.opt file
Hi Tamas:
I have attached the nmake.opt file. I have downloaded the source code for mapserver 5.2.1. from the mapserver website and than I have followed the intructions to compile mapserver
I have tried with both visual studio command promt and vcvars32.bat. I get the same error
Thank you,
Ionut
________________________________
From: Tamas Szekeres <szekerest at gmail.com>
To: sandric ionut <sandricionut at yahoo.com>
Cc: mapserver-users at lists.osgeo.org
Sent: Thursday, January 8, 2009 12:42:45 AM
Subject: Re: [mapserver-users] error compilation for mapserver 5.2.1
Hi Ionut,
I'm guessing the library files and the includes you're compiling against might not relate to the same version. Could you provide a diff how you alter nmake.opt when compiling mapserver? Do you use the Visual Studio Command prompt or set up the environment manually (like using vcvars32.bat or something).
Best regards,
Tamas
2009/1/7 sandric ionut <sandricionut at yahoo.com>
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.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090108/2178c989/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nmake.opt
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090108/2178c989/attachment.ksh>
More information about the MapServer-users
mailing list