hi there,<br><br>been pasted this message in MapServer mailing list, but I realized that it may be better if I paste it here, since it's GDAL problem. Sorry for the duplicated message.<br><br><div>I am trying to compile GDAL with VS2005, but there are a lot of error messages after the namake /f
<a href="http://makefile.vc">makefile.vc</a> command. Here is what I have done:<br></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/" target="_top" rel="nofollow">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" target="_top" rel="nofollow">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/" target="_top" rel="nofollow">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/" target="_top" rel="nofollow">makefile.vc</a> clean</div>
<div>*C:\buildkit\gdal-1.3.2>nmake /f <a href="http://makefile.vc/" target="_top" rel="nofollow">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="http://www.nabble.com/user/SendEmail.jtp?type=post&post=4867349&i=0" target="_top">
??$?HDU?$char_traits@...</a>*</div>
<div>*<a href="http://www.nabble.com/user/SendEmail.jtp?type=post&post=4867349&i=1" target="_top">*@...</a>) already defined in geos<br>*.lib(WKTReader.obj)</div>
<div>*</div>
<div>*********************************</div>I am really confused now, i am just wondering if GDAL can be compiled with VS2005, or it can only be compiled with VC ++ 6?<br><br>thanks for any information.<br><br>zhonghai<br>