<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: Compliation error in mapserver 6.2</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>
<UL>
<P><FONT SIZE=2 FACE="Arial">Dear Madam/Sir,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> I downloaded the mapserver 6.2 source code from web and follow the </FONT><A HREF="http://mapserver.org/installation/win32.html"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://mapserver.org/installation/win32.html</FONT></U></A><FONT SIZE=2 FACE="Arial"> to compile it. However, at the end portion, it comes out errors as below: Please kindly give me adivce to solve it. Many thanks</FONT></P>
<P> <FONT SIZE=2 FACE="Arial">link /dll mapbits.obj maphash.obj mapshape.obj mapxbase.obj mapparser.obj maplexer.obj maptree.obj mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj maplegend.obj maputil.obj mapscale.obj mapquery.obj maplabel.obj maperror.obj mapprimitive.obj mapproject.obj mapraster.obj cgiutil.obj mapsde.obj mapogr.obj maptime.obj maptemplate.obj mappostgis.obj maplayer.obj mapresample.obj mapwms.obj mapwmslayer.obj mapgml.obj maporaclespatial.obj mapprojhack.obj mapdraw.obj mapgd.obj mapoutput.obj mapgdal.obj mapwfs.obj mapwfs11.obj mapwfslayer.obj mapows.obj maphttp.obj mapcontext.obj mapdrawgdal.obj mapjoin.obj mapgraticule.obj mapimagemap.obj mapcopy.obj maprasterquery.obj mapogcfilter.obj mapogcsld.obj mapthread.obj mapobject.obj classobject.obj layerobject.obj mapwcs.obj mapwcs11.obj mapwcs20.obj mapgeos.obj strptime.obj mapogroutput.obj mapcpl.obj mapio.obj mappool.obj mapregex.obj mappluginlayer.obj mapogcsos.obj mappostgresql.obj mapcrypto.obj mapowscommon.obj maplibxml2.obj mapdebug.obj mapchart.obj mapagg.obj maptclutf.obj maprendering.obj mapimageio.obj mapcairo.obj mapoglrenderer.obj mapoglcontext.obj mapogl.obj maptile.obj c:\projects\32bit\regex-0.12\regex.obj mapgeomtransform.obj mapunion.obj mapkmlrenderer.obj mapkml.obj mapdummyrenderer.obj mapgeomutil.obj mapquantization.obj mapogcfiltercommon.obj mapcluster.obj mapuvraster.obj mapservutil.obj renderers\agg\src\agg_arc.obj renderers\agg\src\agg_curves.obj renderers\agg\src\agg_vcgen_contour.obj renderers\agg\src\agg_vcgen_dash.obj renderers\agg\src\agg_vcgen_stroke.obj renderers\agg\src\agg_image_filters.obj renderers\agg\src\agg_line_aa_basics.obj renderers\agg\src\agg_line_profile_aa.obj renderers\agg\src\agg_sqrt_tables.obj renderers\agg\src\agg_embedded_raster_fonts.obj renderers\agg\src\agg_trans_affine.obj renderers\agg\src\agg_vpgen_clip_polygon.obj renderers\agg\src\agg_vpgen_clip_polyline.obj renderers\agg\src\agg_font_freetype.obj renderers\agg\src\agg_svg_parser.obj renderers\agg\src\agg_svg_path_renderer.obj renderers\agg\src\agg_svg_path_tokenizer.obj renderers\agg\src\clipper.obj c:/projects/gdwin32/lib/bgd.lib c:\projects\32bit\jpeg-7/libjpeg.lib c:\projects\32bit\libpng-1.2.41\projects\visualc71\Win32_LIB_Release\libpng.lib c:\projects\32bit\zlib/zdll.lib c:\projects\32bit\freetype-2.3.11\objs\win32\vc2005\freetype2311.lib c:\projects\32bit\jpeg-7/libjpeg.lib c:\projects\32bit\proj-4.7.0/src/proj_i.lib c:\projects\32bit\gdal-1.6.3/gdal_i.lib c:\projects\32bit\gdal-1.6.3/gdal_i.lib D:\app\ora11\product\11.2.0\client_1\oci\lib\msvc\ociw32.lib D:\app\ora11\product\11.2.0\client_1\oci/lib/msvc/oci.lib c:\projects\32bit\fcgi-2.4.0\libfcgi\Release\libfcgi.lib c:\projects\32bit\geos-3.2.0/source/geos_c_i.lib c:\projects\32bit\expat-2.0.1\bin\libexpat.lib /out:libmap.dll /implib:mapserver_i.lib</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Microsoft (R) Incremental Linker Version 9.00.30729.01</FONT>
<BR><FONT SIZE=2 FACE="Arial">Copyright (C) Microsoft Corporation. All rights reserved.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(dbghook.obj) : error LNK2005: __crt_debugger_hook already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(tidtable.obj) : error LNK2005: __encoded_null already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(sprintf.obj) : error LNK2005: _sprintf already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(cinitexe.obj)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(cinitexe.obj)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(cinitexe.obj)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(cinitexe.obj)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRT.lib(MSVCR90.dll)</FONT></P>
<P><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(winxfltr.obj) : error LNK2005: ___CppXcptFilter already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(dosmap.obj) : error LNK2005: __errno already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(strftime.obj) : error LNK2005: _strftime already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(mlock.obj) : error LNK2005: __lock already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(mlock.obj) : error LNK2005: __unlock already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(vsprintf.obj) : error LNK2005: _vsprintf already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(printf.obj) : error LNK2005: _printf already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(_file.obj) : error LNK2005: ___iob_func already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(getenv.obj) : error LNK2005: _getenv already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(tolower.obj) : error LNK2005: _tolower already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(fflush.obj) : error LNK2005: _fflush already defined in MSVCRT.lib(MSVCR90.dll)</FONT>
<BR><FONT SIZE=2 FACE="Arial">MSVCRT.lib(MSVCR90.dll) : error LNK2005: __strnicmp already defined in LIBCMTD.lib(strnicmp.obj)</FONT>
<BR><FONT SIZE=2 FACE="Arial">MSVCRT.lib(MSVCR90.dll) : error LNK2005: __stricmp already defined in LIBCMTD.lib(stricmp.obj)</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Creating library mapserver_i.lib and object mapserver_i.exp</FONT>
<BR><FONT SIZE=2 FACE="Arial">LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library</FONT>
<BR><FONT SIZE=2 FACE="Arial">LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library</FONT>
<BR><FONT SIZE=2 FACE="Arial">LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup</FONT>
<BR><FONT SIZE=2 FACE="Arial">libmap.dll : fatal error LNK1120: 1 unresolved externals<SPAN LANG="zh-hk"></SPAN></FONT><SPAN LANG="zh-hk"></SPAN>
</P>
</UL>
<P><pre wrap><html>
<head>
</head>
<body>
<pre>
<p>
<span style="font-family: Verdana, Arial; font-size:10pt;">
Hong Kong and China Gas Company Limited
Greening up your life
</span>
</pre>
</body>
</html>
</pre></P></BODY>
</HTML>