The message says to disable deprecation.&nbsp; Deprecation is disabled in nmake.opt&nbsp; inside OPTFLAGS&nbsp; but then there is another OPTFLAGS that enables it again only a few lines later. <br><br>The first one on line 92:<br><br>OPTFLAGS =&nbsp;&nbsp;&nbsp; /nologo /Ox /MD $(WARNING_LEVEL) $(DEBUG) /EHsc /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE<br>
<br>And then on line 98:<br><br>OPTFLAGS =&nbsp;&nbsp;&nbsp; /nologo /Ox /MD $(WARNING_LEVEL) $(DEBUG) /EHsc<br><br>I commented out the second one, and the errors now are:&nbsp; <br><br>regex.c<br>C:\projects\regex-0.12\regex.c(2834) : warning C4047: &#39;=&#39; : &#39;regoff_t *&#39; differs in levels of indirection from &#39;int&#39;<br>
C:\projects\regex-0.12\regex.c(4876) : warning C4996: &#39;errcode&#39; was declared deprecated<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of &#39;errcode&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Message: &#39;This name was supported during some Whidbey pre-releases. Instead, use the standard name errno_t.&#39;<br>
C:\projects\regex-0.12\regex.c(4876) : error C2081: &#39;preg&#39; : name in formal parameter list illegal<br>C:\projects\regex-0.12\regex.c(4876) : error C2081: &#39;errbuf&#39; : name in formal parameter list illegal<br>
C:\projects\regex-0.12\regex.c(4876) : error C2081: &#39;errbuf_size&#39; : name in formal parameter list illegal<br>C:\projects\regex-0.12\regex.c(4877) : error C2055: expected formal parameter list, not a type list<br>C:\projects\regex-0.12\regex.c(4877) : error C2082: redefinition of formal parameter &#39;errcode&#39;<br>
C:\projects\regex-0.12\regex.c(4885) : warning C4996: &#39;errcode&#39; was declared deprecated<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of &#39;errcode&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Message: &#39;This name was supported during some Whidbey pre-releases. Instead, use the standard name errno_t.&#39;<br>
C:\projects\regex-0.12\regex.c(4885) : error C2059: syntax error : &#39;type&#39;<br>C:\projects\regex-0.12\regex.c(4893) : error C2275: &#39;errcode&#39; : illegal use of this type as an expression<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of &#39;errcode&#39;<br>
NMAKE : fatal error U1077: &#39;&quot;C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE&quot;&#39; : return code &#39;0x2&#39;<br>Stop.<br><br><br><br><br><br><div class="gmail_quote">On Mon, Apr 7, 2008 at 2:54 PM, Florin A. &lt;<a href="mailto:pianosnake@gmail.com">pianosnake@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Frank, <br><br>I forgot the rest....<br><br>C:\projects\regex-0.12\regex.c(4079) : warning C4018: &#39;&gt;=&#39; : signed/unsigned mismatch<br>
C:\projects\regex-0.12\regex.c(4110) : warning C4018: &#39;&lt;=&#39; : signed/unsigned mismatch<br>
C:\projects\regex-0.12\regex.c(4123) : warning C4018: &#39;&lt;=&#39; : signed/unsigned mismatch<br>C:\projects\regex-0.12\regex.c(4293) : warning C4018: &#39;&gt;=&#39; : signed/unsigned mismatch<br>C:\projects\regex-0.12\regex.c(3771) : warning C4101: &#39;destination&#39; : unreferenced local variable<br>

C:\projects\regex-0.12\regex.c(3918) : warning C4101: &#39;destination&#39; : unreferenced local variable<br>C:\projects\regex-0.12\regex.c(3971) : warning C4101: &#39;destination&#39; : unreferenced local variable<br>C:\projects\regex-0.12\regex.c(4110) : warning C4101: &#39;destination&#39; : unreferenced local variable<br>

C:\projects\regex-0.12\regex.c(4123) : warning C4101: &#39;destination&#39; : unreferenced local variable<br>C:\projects\regex-0.12\regex.c(4876) : warning C4996: &#39;errcode&#39; was declared deprecated<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of &#39;errcode&#39;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Message: &#39;This name was supported during some Whidbey pre-releases. Instead, use the standard name errno_t.&#39;<br>C:\projects\regex-0.12\regex.c(4876) : error C2081: &#39;preg&#39; : name in formal parameter list illegal<br>

C:\projects\regex-0.12\regex.c(4876) : error C2081: &#39;errbuf&#39; : name in formal parameter list illegal<br>C:\projects\regex-0.12\regex.c(4876) : error C2081: &#39;errbuf_size&#39; : name in formal parameter list illegal<br>

C:\projects\regex-0.12\regex.c(4877) : error C2055: expected formal parameter list, not a type list<br>C:\projects\regex-0.12\regex.c(4877) : error C2082: redefinition of formal parameter &#39;errcode&#39;<br>C:\projects\regex-0.12\regex.c(4885) : warning C4996: &#39;errcode&#39; was declared deprecated<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of &#39;errcode&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Message: &#39;This name was supported during some Whidbey pre-releases. Instead, use the standard name errno_t.&#39;<br>

C:\projects\regex-0.12\regex.c(4885) : error C2059: syntax error : &#39;type&#39;<br>C:\projects\regex-0.12\regex.c(4893) : error C2275: &#39;errcode&#39; : illegal use of this type as an expression<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of &#39;errcode&#39;<br>

C:\projects\regex-0.12\regex.c(4910) : warning C4996: &#39;strcpy&#39; was declared deprecated<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Message: &#39;This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRE<br>

CATE. See online help for details.&#39;<br>NMAKE : fatal error U1077: &#39;&quot;C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE&quot;&#39; : return code &#39;0x2&#39;<br>Stop.<div><div></div><div class="Wj3C7c">
<br><br><br><br><br><br><br><br><br>
<br><br><br><div class="gmail_quote">On Mon, Apr 7, 2008 at 2:03 PM, Frank Warmerdam &lt;<a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>Florin A. wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br>
<br>
I&#39;m trying to compile MapServer on Windows Server 2003. &nbsp;I followed all the instructions on <a href="http://mapserver.gis.umn.edu/docs/howto/win32_compiling" target="_blank">http://mapserver.gis.umn.edu/docs/howto/win32_compiling</a> and I&#39;m stuck with regex errors. &nbsp;The errors are the same as this post <a href="http://www.mail-archive.com/mapserver-users@lists.umn.edu/msg15996.html" target="_blank">http://www.mail-archive.com/mapserver-users@lists.umn.edu/msg15996.html</a> <br>


I&#39;m compiling with nmake from Microsoft Visual Studio 8<br>
<br>
I also tried compiling with the buildkit from <a href="http://download.osgeo.org/buildkit/" target="_blank">http://download.osgeo.org/buildkit/</a> &nbsp;and got the same errors.<br>
<br>
regex.c<br>
C:\projects\regex-0.12\regex.c(768) : warning C4018: &#39;&lt;&#39; : signed/unsigned mismatch<br>
</blockquote>
...<br>
</div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
C:\projects\regex-0.12\regex.c(1953) : warning C4018: &#39;&gt;&#39; : signed/unsigned mismatch<br>
<br>
<br>
I tried the correction mentioned for the regex.c file:<br>
<br>
//extern void printchar ();<br>
void printchar( int i ) {}<br>
<br>
<br>
This made no difference. I also tried with the win32 regex distribution from <a href="http://people.delphiforums.com/gjc/gnu_regex.exe" target="_blank">http://people.delphiforums.com/gjc/gnu_regex.exe</a> and again, exactly the same errors.<br>


<br>
Has anybody else encountered this regex error? &nbsp;Shouldn&#39;t nmake work with no problems on the buildkit ? <br>
</blockquote>
<br></div>
Florin,<br>
<br>
The above are just warnings. &nbsp;I would encourage you to just ignore them<br>
and proceed.<br>
<br>
Best regards,<br><font color="#888888">
-- <br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up &nbsp; | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush &nbsp; &nbsp;| President OSGeo, <a href="http://osgeo.org" target="_blank">http://osgeo.org</a><br>
<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>