<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">


<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.E-mailStlus21
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=HU link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You are right. Don&#8217;t be confused
about the comments MSVC 8.0 &nbsp;have not been widely used so far, and the comment
was not be updated ;-)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Tamas<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonName
w:st="on">Zhonghai Wang</st1:PersonName> [mailto:zhonghaiw@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, June 14, 2006
10:52 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Tamas Szekeres<br>
<b><span style='font-weight:bold'>Cc:</span></b> MAPSERVER-USERS@lists.umn.edu<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [UMN_MAPSERVER-USERS]
Compile MapSevrer with VS2005 (MapServer BuiltKit source code)</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi Tamas,<br>
<br>
I really appreciate your help. <br>
<br>
and in my case, I uncomment also several options, but for my application Oracle
Spatial support is needed, so I use the latest version BuiltKit
from&nbsp;Howard Butler. I will try to compile all the needed libraries with
VS2005. <br>
<br>
BTW: to compile CSharp/MapScript with MapServer, what I need to do is to
umcomment the DOTNET option in the nmake.opt file in the mapserver-4.8.3
folder, which is:<o:p></o:p></span></font></p>

<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'>#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><br>
# .NET/C# MapScript<br>
# ----------------------------------------------------------------------<br>
# .NET will of course only work with MSVC 7.0 and 7.1.&nbsp; Also note that<br>
# you will definitely want USE_THREAD defined.<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><br>
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
DOT_NET = YES<br>
<br>
is that right? but the MSVC 7.0 and 7.1.seems for VS2003.<br>
<br>
thank you very much.<br>
<br>
zhonghai<o:p></o:p></span></font></pre>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 6/14/06, <b><span style='font-weight:bold'>Tamas
Szekeres</span></b> &lt;<a href="mailto:szekerest@gmail.com">szekerest@gmail.com</a>&gt;
wrote:</span></font></span> <o:p></o:p></p>

<div>

<div link=blue vlink=blue>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Zhonghai,<o:p></o:p></span></font></p>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>The
buildkit was compiled originally with VS2003, compiling with VS2005 is not so
straightforward.<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>When
compiling gdal you probably link against several &nbsp;&nbsp;libs compiled with
VS2003 previously so you should compile those libraries with VS2005 first.<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>See nmake.opt
and search for the .lib references to locate those libraries.<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>I suggest
to disable the libraries not really needed for your application. (Even with
mapserver and gdal)<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>I cannot
confirm if all of the libraries could be enabled easily. In my application
ORACLE, SDE, XERCES, GEOS, ECW were disabled. (however these are enabled by
default). <o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>However
some folks might have gone forward with the libraries mentioned previously as
well.<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Best
Regards,<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Tamas
Szekeres<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p><b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'> UMN MapServer Users List [mailto:<a
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU" target="_blank">MAPSERVER-USERS@LISTS.UMN.EDU</a>]
<b><span style='font-weight:bold'>On Behalf Of </span></b><st1:PersonName
w:st="on">Zhonghai Wang</st1:PersonName><br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, June 14, 2006
5:33 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <a
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU" target="_blank">MAPSERVER-USERS@LISTS.UMN.EDU</a><br>
<b><span style='font-weight:bold'>Subject:</span></b> [UMN_MAPSERVER-USERS]
Compile MapSevrer with VS2005 (MapServer BuiltKit source code)</span></font><o:p></o:p></p>

</div>

</div>

<div><span id="q_10bd43d3d5c9ab65_1">

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>hi guys,<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>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.<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>1.source
code download: -- the MapServer BuildKit&nbsp;from&nbsp;Howard Butler<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;<a
href="http://hobu.stat.iastate.edu/mapserver/build_output/" target="_blank">http://hobu.stat.iastate.edu/mapserver/build_output/
</a><o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;
and I have downloaded the latest package version
&quot;mapserver-4.8.3-2-msvc71-buildk-kit.zip&quot;<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>2.and I
follow the compilation guide here: <o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;
<a
href="http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024"
target="_blank">http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024</a>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&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;<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;
package under VS2005 command prompt with the command &quot;nmake /f <a
href="http://makefile.vc" target="_blank">makefile.vc</a>&quot;, there are some
error messages appears, the scenario is:<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>********************************<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>*C:\buildkit\gdal-1.3.2&gt;nmake
/f <a href="http://makefile.vc" target="_blank">makefile.vc</a> clean<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>*C:\buildkit\gdal-1.3.2&gt;nmake
/f <a href="http://makefile.vc" target="_blank">makefile.vc</a> <o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>*<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>*<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>*<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>*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:<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>*<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>*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"
target="_blank">??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string
</a>*<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>*<a
href="mailto:*@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z"
target="_blank">@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z </a>)
already defined in geos<br>
*.lib(WKTReader.obj)<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>*<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>*********************************<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>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"
target="_blank">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: <o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>***<o:p></o:p></span></font></p>

</div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>To build
the package using the <a href="http://Makefile.vc" target="_blank">Makefile.vc</a>
and NMAKE:<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&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.<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;-
Open a DOS prompt window<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&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. <o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;-
Then start the build with: <br>
&nbsp;&nbsp;&nbsp;&nbsp; nmake /f <a href="http://Makefile.vc" target="_blank">Makefile.vc</a>
<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>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.<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>***<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>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?<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>I would
really appreciate it if you give me some HINTS for my compilation.<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>zhonghai<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

</span>

<div>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>--<br>
No virus found in this incoming message.<br>
Checked by AVG Free Edition.<br>
Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14.</span></font><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>--<br>
No virus found in this outgoing message.<br>
Checked by AVG Free Edition.<br>
Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14.</span></font><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>--<br>
No virus found in this incoming message.<br>
Checked by AVG Free Edition.<br>
Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14.</span></font><o:p></o:p></p>

</div>

</body>

</html>
<BR>

<P><FONT SIZE=2>--<BR>
No virus found in this outgoing message.<BR>
Checked by AVG Free Edition.<BR>
Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14.<BR>
</FONT> </P>