<div>hi guys,</div>
<div> </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> </div>
<div>1.source code download: -- the MapServer BuildKit from Howard Butler</div>
<div> <a href="http://hobu.stat.iastate.edu/mapserver/build_output/">http://hobu.stat.iastate.edu/mapserver/build_output/</a></div>
<div> and I have downloaded the latest package version "mapserver-4.8.3-2-msvc71-buildk-kit.zip"</div>
<div>2.and I follow the compilation guide here: </div>
<div> <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> </div>
<div> 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 </div>
<div> package under VS2005 command prompt with the command "nmake /f <a href="http://makefile.vc">makefile.vc</a>", there are some error messages appears, the scenario is:</div>
<div>********************************</div>
<div>*C:\buildkit\gdal-1.3.2>nmake /f <a href="http://makefile.vc">makefile.vc</a> clean</div>
<div>*C:\buildkit\gdal-1.3.2>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: "class std::basic_string<char,struct s<br>*td::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,s<br>*truct std::char_traits<char>,class std::allocator<char> >(class std::basic_strin
<br>*g<char,struct std::char_traits<char>,class std::allocator<char> > const &,char c<br>*onst *)" (<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> </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> - Edit nmake.opt to select (or deselect) optional components of <br> the MapServer. Please read the notes below about each component<br> before you move ahead with the compilation.</p>
<p> - Open a DOS prompt window</p>
<p> - Run the VCVARS32.BAT script to initialize the VC++ environment<br> variables. VCVARS32.BAT is automatically generated by the MSVC++<br> install procedure and should be located in the BIN sub-directory of<br> your MSVC++ installation.
</p>
<p> - Then start the build with: <br> nmake /f <a href="http://Makefile.vc">Makefile.vc</a> </p>
<p>This will create "mapserv.exe" (the main MapServer CGI program), the<br>other command-line utilities, "mapserver.lib" and "libmap.dll" 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> </p></div>