<div>hi guys,</div>
<div>&nbsp;</div>
<div>I am trying to compile MapServer with VS2005 now, and I've struggle with it for almost one day, but I am still in the dark...the following is done for the compilation, and any ideas from you will be so helpful.</div>

<div>&nbsp;</div>
<div>1.source code download: -- the MapServer BuildKit&nbsp;from&nbsp;Howard Butler</div>
<div>&nbsp;&nbsp;&nbsp;<a href="http://hobu.stat.iastate.edu/mapserver/build_output/">http://hobu.stat.iastate.edu/mapserver/build_output/</a></div>
<div>&nbsp;&nbsp; and I have downloaded the latest package version &quot;mapserver-4.8.3-2-msvc71-buildk-kit.zip&quot;</div>
<div>2.and I follow the compilation guide here: </div>
<div>&nbsp;&nbsp; <a href="http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024">http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024</a>&nbsp;</div>
<div>&nbsp;&nbsp; to compile MapServer, according to this doc, I should at first compile the GDAL package, and then come to the MapServer package. But when I am trying to compile the GDAL&nbsp;&nbsp;&nbsp;</div>
<div>&nbsp;&nbsp; package under VS2005 command prompt with the command &quot;nmake /f <a href="http://makefile.vc">makefile.vc</a>&quot;, there are some error messages appears, the scenario is:</div>
<div>********************************</div>
<div>*C:\buildkit\gdal-1.3.2&gt;nmake /f <a href="http://makefile.vc">makefile.vc</a> clean</div>
<div>*C:\buildkit\gdal-1.3.2&gt;nmake /f <a href="http://makefile.vc">makefile.vc</a></div>
<div>*</div>
<div>*</div>
<div>*</div>
<div>*and here come the error messages, I paste only the first one here, because I think if I fix this problem, the other error may be fixed at the same time:</div>
<div>*</div>
<div>*msvcprt.lib(MSVCP80.dll) : error LNK2005: &quot;class std::basic_string&lt;char,struct s<br>*td::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; __cdecl std::operator+&lt;char,s<br>*truct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;(class std::basic_strin
<br>*g&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;,char c<br>*onst *)&quot; (<a href="mailto:??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string">??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string
</a>*</div>
<div>*<a href="mailto:*@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z">@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z</a>) already defined in geos<br>*.lib(WKTReader.obj)</div>
<div>*</div>
<div>*********************************</div>
<div>&nbsp;</div>
<div>Because I want to use CSharp/MapScript under the .NET FW 2.0, and I've also got some info from the Doc:<a href="http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile">http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile
</a>, it says that I should compile MapServer and the related libraries using VS2005 for .NET FW 2.0, I begin with the VS2005 command prompt instead of following the compilation guide in the mapserver README.WIN32, which gives:
</div>
<div>***</div>
<div>
<p>To build the package using the <a href="http://Makefile.vc">Makefile.vc</a> and NMAKE:</p>
<p>&nbsp;- Edit nmake.opt to select (or deselect) optional components of <br>&nbsp;&nbsp; the MapServer.&nbsp; Please read the notes below about each component<br>&nbsp;&nbsp; before you move ahead with the compilation.</p>
<p>&nbsp;- Open a DOS prompt window</p>
<p>&nbsp;- Run the VCVARS32.BAT script to initialize the VC++ environment<br>&nbsp;&nbsp; variables.&nbsp; VCVARS32.BAT is automatically generated by the MSVC++<br>&nbsp;&nbsp; install procedure and should be located in the BIN sub-directory of<br>&nbsp;&nbsp; your MSVC++ installation.
</p>
<p>&nbsp;- Then start the build with: <br>&nbsp;&nbsp;&nbsp;&nbsp; nmake /f <a href="http://Makefile.vc">Makefile.vc</a> </p>
<p>This will create &quot;mapserv.exe&quot; (the main MapServer CGI program), the<br>other command-line utilities, &quot;mapserver.lib&quot; and &quot;libmap.dll&quot; that is <br>used by theMapScript modules.</p>
<p>***</p>
<p>I am now just wondering if it's possible to compile MapServer and related libraries with VS2005, since the MSVCP80.dll can always not be found. Did anyone have some experiences about that?</p>
<p>I would really appreciate it if you give me some HINTS for my compilation.</p>
<p>zhonghai</p>
<p>&nbsp;</p></div>