<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Hi Tamas:</DIV>
<DIV> </DIV>
<DIV>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</DIV>
<DIV> </DIV>
<DIV>I have tried with both visual studio command promt and vcvars32.bat. I get the same error</DIV>
<DIV> </DIV>
<DIV>Thank you,</DIV>
<DIV> </DIV>
<DIV>Ionut<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Tamas Szekeres <szekerest@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> sandric ionut <sandricionut@yahoo.com><BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> mapserver-users@lists.osgeo.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, January 8, 2009 12:42:45 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [mapserver-users] error compilation for mapserver 5.2.1<BR></FONT><BR>Hi Ionut,<BR><BR>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).<BR><BR>Best regards,<BR><BR>Tamas<BR><BR><BR><BR>
<DIV class=gmail_quote>2009/1/7 sandric ionut <SPAN dir=ltr><<A href="mailto:sandricionut@yahoo.com" target=_blank rel=nofollow ymailto="mailto:sandricionut@yahoo.com">sandricionut@yahoo.com</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<P>Hello:</P>
<P> </P>
<P>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:</P>
<P> </P>
<P>nmake -f <A href="http://makefile.vc/" target=_blank rel=nofollow>makefile.vc</A> charp</P>
<P> </P>
<P>After several errors (which I've managed to pass), I've the following error (see bellow)</P>
<P> </P>
<P>How can I correct this?</P>
<P> </P>
<P>Thank you in advance</P>
<P> </P>
<P>Ionut</P>
<P> </P>
<P> ...</P>
<P>-DUSE_THREAD -DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG -DUSE_<BR>GD_ANTIALIAS -DUSE_ZLIB -DUSE_AGG -DWIN32 -D_WIN32 /c mapraster.c /Fo<BR>mapraster.obj<BR>mapraster.c<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(327) :<BR> warning C4005: 'TEXT' : macro redefinition<BR> h:\kit\mapserver-5.2.1\mapfile.h(123) : see previous definition of 'TEXT<BR>'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(343)<BR>: error C2059: syntax error : 'constant'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(345)<BR>: error C2059: syntax error : 'constant'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(346)<BR>: error C2059: syntax error :
'constant'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(357)<BR>: error C2059: syntax error : 'constant'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(98) :<BR> warning C4005: 'ERROR' : macro redefinition<BR> h:\kit\mapserver-5.2.1\mapfile.h(52) : see previous definition of 'ERROR<BR>'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(879)<BR>: error C2061: syntax error : identifier 'SIZEL'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(880)<BR>: error C2061: syntax error : identifier 'szlMillimeters'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(880)<BR>: error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(890)<BR>: error C2061: syntax error : identifier 'szlMicrometers'<BR>C:\Program
Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(890)<BR>: error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(893)<BR>: error C2059: syntax error : '}'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1103)<BR> : error C2059: syntax error : 'constant'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1104)<BR> : error C2059: syntax error : 'constant'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1105)<BR> : error C2059: syntax error : 'constant'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1106)<BR> : error C2059: syntax error : 'constant'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1557)<BR> : warning C4005: 'TRANSPARENT' : macro redefinition<BR>
h:\kit\mapserver-5.2.1\mapfile.h(130) : see previous definition of 'TRAN<BR>SPARENT'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)<BR> : error C2146: syntax error : missing ')' before identifier 'lpsize'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)<BR> : error C2061: syntax error : identifier 'lpsize'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)<BR> : error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049)<BR> : error C2146: syntax error : missing ')' before identifier
'lpsize'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049)<BR> : error C2061: syntax error : identifier 'lpsize'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049)<BR> : error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203)<BR> : error C2146: syntax error : missing ')' before identifier 'lpsz'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\wingdi.h(3203)<BR> : error C2061: syntax error : identifier 'lpsz'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203)<BR> : error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3204)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212)<BR> : error C2146: syntax error : missing ')' before identifier 'lpsz'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212)<BR> : error C2061: syntax error : identifier 'lpsz'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212)<BR> : error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft
Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3213)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227)<BR> : error C2146: syntax error : missing ')' before identifier 'psizl'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227)<BR> : error C2061: syntax error : identifier 'psizl'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227)<BR> : error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3228)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236)<BR> : error C2146: syntax error : missing ')' before identifier
'psizl'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236)<BR> : error C2061: syntax error : identifier 'psizl'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236)<BR> : error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3237)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254)<BR> : error C2146: syntax error : missing ')' before identifier 'lpSize'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\wingdi.h(3254)<BR> : error C2061: syntax error : identifier 'lpSize'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254)<BR> : error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3255)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266)<BR> : error C2146: syntax error : missing ')' before identifier 'lpSize'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266)<BR> : error C2061: syntax error : identifier 'lpSize'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266)<BR> : error C2059: syntax error : ';'<BR>C:\Program
Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3267)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489)<BR> : error C2146: syntax error : missing ')' before identifier 'lpsize'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489)<BR> : error C2061: syntax error : identifier 'lpsize'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489)<BR> : error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491)<BR> : error C2146: syntax error : missing ')'
before identifier 'lpsize'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491)<BR> : error C2061: syntax error : identifier 'lpsize'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491)<BR> : error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727)<BR> : error C2146: syntax error : missing ')' before identifier 'lpEnhMetaHeader'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727)<BR> : error C2081: 'LPENHMETAHEADER' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\wingdi.h(3727)<BR> : error C2061: syntax error : identifier 'lpEnhMetaHeader'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727)<BR> : error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009)<BR> : error C2146: syntax error : missing ')' before identifier 'lpsz'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009)<BR> : error C2061: syntax error : identifier 'lpsz'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009)<BR> : error C2059: syntax error : ';'<BR>C:\Program
Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011)<BR> : error C2146: syntax error : missing ')' before identifier 'lpsz'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011)<BR> : error C2061: syntax error : identifier 'lpsz'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011)<BR> : error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016)<BR> : error C2146: syntax error : missing ')' before
identifier 'lpsz'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016)<BR> : error C2061: syntax error : identifier 'lpsz'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016)<BR> : error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017)<BR> : error C2146: syntax error : missing ')' before identifier 'lpsz'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\wingdi.h(4017)<BR> : error C2061: syntax error : identifier 'lpsz'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017)<BR> : error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018)<BR> : error C2146: syntax error : missing ')' before identifier 'lpsz'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018)<BR> : error C2081: 'LPSIZE' : name in formal parameter list illegal<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018)<BR> : error C2061: syntax error : identifier 'lpsz'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018)<BR> : error C2059: syntax error : ';'<BR>C:\Program Files\Microsoft
Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018)<BR> : error C2059: syntax error : ')'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4477)<BR> : error C2061: syntax error : identifier 'SIZEL'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4478)<BR> : error C2059: syntax error : '}'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4531)<BR> : error C2061: syntax error : identifier 'SIZEL'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4532)<BR> : error C2059: syntax error : '}'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4571)<BR> : error C2059: syntax error : 'constant'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4572)<BR> : error C2059: syntax error : '}'<BR>C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\wingdi.h(4592)<BR> : error C2059: syntax error : 'constant'<BR>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4592)<BR> : fatal error C1003: error count exceeds 100; stopping compilation<BR>NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c<BR>l.EXE"' : return code '0x2'<BR>Stop.</P></DIV><BR></DIV><BR>_______________________________________________<BR>mapserver-users mailing list<BR><A href="mailto:mapserver-users@lists.osgeo.org" target=_blank rel=nofollow ymailto="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target=_blank rel=nofollow>http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></div><br>
</body></html>