Compiling latest mapserver 4.8.4 (link errors)
Howard Butler
hobu at IASTATE.EDU
Wed Aug 9 08:24:33 PDT 2006
It appears that MING/MING_DIR and PDF/PDF_DIR
were left uncommented in nmake.opt for the 4.8
branch. You need to comment these out (or obtain
those libraries for PDF and Flash support).
The other errors are related to mixing debug and
release versions of the runtimes. Is one of your
support libraries compiled with /MDd and you are
compling MapServer with /MD? All of the
libraries need to be compiled against the same
runtime to ensure perfect harmony in the MSVC universe.
Howard
At 10:15 AM 8/9/2006, M.L. Jackson wrote:
>I am trying to compile mapserver 4.8.4. I have come across the following
>error which seems to indicate a problem with linking:
>
>LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in
>MSVCRT.lib(MSV
>CRT.dll)
>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in
>MSVCRT.lib(
>cinitexe.obj)
>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in
>MSVCRT.lib(
>cinitexe.obj)
>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in
>MSVCRT.lib(
>cinitexe.obj)
>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in
>MSVCRT.lib(
>cinitexe.obj)
>MSVCRT.lib(MSVCRT.dll) : error LNK2005: __fileno already defined in
>LIBCMT.lib(f
>ileno.obj)
>LIBCMT.lib(crt0dat.obj) : warning LNK4006: _exit already defined in
>MSVCRT.lib(M
>SVCRT.dll); second definition ignored
>LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in
>MSVCRT.li
>b(cinitexe.obj); second definition ignored
>LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in
>MSVCRT.li
>b(cinitexe.obj); second definition ignored
>LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in
>MSVCRT.li
>b(cinitexe.obj); second definition ignored
>LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in
>MSVCRT.li
>b(cinitexe.obj); second definition ignored
>MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __fileno already defined in
>LIBCMT.lib
>(fileno.obj); second definition ignored
> Creating library mapserver_i.lib and object mapserver_i.exp
>LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other
>libs; us
>e /NODEFAULTLIB:library
>LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other
>libs; us
>e /NODEFAULTLIB:library
>maputil.obj : error LNK2001: unresolved external symbol _msSaveImageSWF
>maputil.obj : error LNK2001: unresolved external symbol _msFreeImageSWF
>maputil.obj : error LNK2001: unresolved external symbol _msImageCreateSWF
>mapdraw.obj : error LNK2001: unresolved external symbol _msImageCreateSWF
>maputil.obj : error LNK2001: unresolved external symbol _msTransformShapeSWF
>mapdraw.obj : error LNK2001: unresolved external symbol _msDrawWMSLayerSWF
>mapdraw.obj : error LNK2001: unresolved external symbol
>_msDrawVectorLayerAsRast
>erSWF
>mapdraw.obj : error LNK2001: unresolved external symbol
>_msDrawRasterLayerSWF
>mapdraw.obj : error LNK2001: unresolved external symbol
>_msDrawMarkerSymbolSWF
>mapdraw.obj : error LNK2001: unresolved external symbol _msDrawLineSymbolSWF
>mapdraw.obj : error LNK2001: unresolved external symbol
>_msDrawShadeSymbolSWF
>mapdraw.obj : error LNK2001: unresolved external symbol _msDrawLabelSWF
>mapdraw.obj : error LNK2001: unresolved external symbol _draw_textSWF
>mapdraw.obj : error LNK2001: unresolved external symbol _msDrawLabelCacheSWF
>mapdraw.obj : error LNK2001: unresolved external symbol
>_msImageStartLayerSWF
>mapdraw.obj : error LNK2001: unresolved external symbol _msDrawStartShapeSWF
>mapgd.obj : error LNK2001: unresolved external symbol __imp__libiconv_close
>mapgd.obj : error LNK2001: unresolved external symbol __imp__libiconv
>mapgd.obj : error LNK2001: unresolved external symbol __imp__libiconv_open
>regex.obj : error LNK2001: unresolved external symbol _printchar
>pdflib.lib(p_resource.obj) : error LNK2001: unresolved external symbol
>__imp__Re
>gCloseKey at 4
>pdflib.lib(p_resource.obj) : error LNK2001: unresolved external symbol
>__imp__Re
>gQueryValueExA at 24
>pdflib.lib(p_resource.obj) : error LNK2001: unresolved external symbol
>__imp__Re
>gOpenKeyExA at 20
>LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
>libmap.dll : fatal error LNK1120: 23 unresolved externals
>NMAKE : fatal error U1077: 'link' : return code '0x460'
>Stop.
>
>Can someone please tell me what I am doing wrong or what needs to be done to
>make it right? Thanks.
>
>_________________________________________________________________
>Is your PC infected? Get a FREE online computer virus scan from McAfee®
>Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
More information about the MapServer-users
mailing list