[Mapserver-users] Mapserver 3.7 linker error on Win32

Matthew Hatcher MJHatcher at space.qinetiq.com
Wed Feb 12 11:16:44 EST 2003


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2D2B2.225877B0
Content-Type: text/plain; charset="iso-8859-1"

Hi all,

I'm having problems with compiling MS3.7 under Win32. As far as I can tell,
I have all the libraries built correctly and they are not conflicting
versions. I am using GD2.0.7gif in order to get 24-bit rendering, and have
enabled WFS and WMS support using libcurl.

Everything compiles fine, but at the link stage I get errors about a
conflict between LIBC.lib and MSVCRT.lib (see below). I've seen messages
before about multi-threaded versions of freetype causing this problem, but I
am definitely linking to the single-threaded version. Are there any other
libraries that could be causing such a problem?

I'm welcome to suggestions! I would ask if anyone has a pre-built
executable, but a 3.7 exe with WMS, WFS, 24-bit, GDAL, OGR AND ORACLE
SPATIAL support is probably asking a bit much..... ;-)

Cheers in advance,

Matt.


Microsoft (R) Incremental Linker Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already defined in
LIBC.lib(free.o
bj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _malloc already defined in
LIBC.lib(mall
oc.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _time already defined in
LIBC.lib(time.o
bj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _realloc already defined in
LIBC.lib(rea
lloc.obj)

--= snip =--

MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _free already defined in
LIBC.lib(free
.obj); second definition ignored
MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _malloc already defined in
LIBC.lib(ma
lloc.obj); second definition ignored
MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _time already defined in
LIBC.lib(time
.obj); second definition ignored
MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _realloc already defined in
LIBC.lib(r
ealloc.obj); second definition ignored

--= snip =--

   Creating library mapserv.lib and object mapserv.exp
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other
libs; us
e /NODEFAULTLIB:library
mapserv.exe : fatal error LNK1169: one or more multiply defined symbols
found
NMAKE : fatal error U1077: 'link' : return code '0x491'
Stop.


**********************************************************************
The information contained in this email and any subsequent
 correspondence is private and is intended solely for the 
intended recipient(s). For those other than the intended
 recipient(s) any disclosure, copying, distribution, or any 
action taken or omitted to be taken in reliance on such 
information is prohibited and may be unlawful.
**********************************************************************


------_=_NextPart_001_01C2D2B2.225877B0
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Diso-8859-=
1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version 5.5.2653.12">
<TITLE>Mapserver 3.7 linker error  on Win32</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hi all,</FONT>
</P>

<P><FONT SIZE=3D2>I'm having problems with compiling MS3.7 under Win32. As =
far as I can tell, I have all the libraries built correctly and they are no=
t conflicting versions. I am using GD2.0.7gif in order to get 24-bit render=
ing, and have enabled WFS and WMS support using libcurl.</FONT></P>

<P><FONT SIZE=3D2>Everything compiles fine, but at the link stage I get err=
ors about a conflict between LIBC.lib and MSVCRT.lib (see below). I've seen=
 messages before about multi-threaded versions of freetype causing this pro=
blem, but I am definitely linking to the single-threaded version. Are there=
 any other libraries that could be causing such a problem?</FONT></P>

<P><FONT SIZE=3D2>I'm welcome to suggestions! I would ask if anyone has a p=
re-built executable, but a 3.7 exe with WMS, WFS, 24-bit, GDAL, OGR AND ORA=
CLE SPATIAL support is probably asking a bit much..... ;-)</FONT></P>

<P><FONT SIZE=3D2>Cheers in advance,</FONT>
</P>

<P><FONT SIZE=3D2>Matt.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Microsoft (R) Incremental Linker Version 6.00.8447</FONT>
<BR><FONT SIZE=3D2>Copyright (C) Microsoft Corp 1992-1998. All rights reser=
ved.</FONT>
</P>

<P><FONT SIZE=3D2>MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already def=
ined in LIBC.lib(free.o</FONT>
<BR><FONT SIZE=3D2>bj)</FONT>
<BR><FONT SIZE=3D2>MSVCRT.lib(MSVCRT.dll) : error LNK2005: _malloc already =
defined in LIBC.lib(mall</FONT>
<BR><FONT SIZE=3D2>oc.obj)</FONT>
<BR><FONT SIZE=3D2>MSVCRT.lib(MSVCRT.dll) : error LNK2005: _time already de=
fined in LIBC.lib(time.o</FONT>
<BR><FONT SIZE=3D2>bj)</FONT>
<BR><FONT SIZE=3D2>MSVCRT.lib(MSVCRT.dll) : error LNK2005: _realloc already=
 defined in LIBC.lib(rea</FONT>
<BR><FONT SIZE=3D2>lloc.obj)</FONT>
</P>

<P><FONT SIZE=3D2>--=3D snip =3D--</FONT>
</P>

<P><FONT SIZE=3D2>MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _free already d=
efined in LIBC.lib(free</FONT>
<BR><FONT SIZE=3D2>.obj); second definition ignored</FONT>
<BR><FONT SIZE=3D2>MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _malloc alread=
y defined in LIBC.lib(ma</FONT>
<BR><FONT SIZE=3D2>lloc.obj); second definition ignored</FONT>
<BR><FONT SIZE=3D2>MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _time already =
defined in LIBC.lib(time</FONT>
<BR><FONT SIZE=3D2>.obj); second definition ignored</FONT>
<BR><FONT SIZE=3D2>MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _realloc alrea=
dy defined in LIBC.lib(r</FONT>
<BR><FONT SIZE=3D2>ealloc.obj); second definition ignored</FONT>
</P>

<P><FONT SIZE=3D2>--=3D snip =3D--</FONT>
</P>

<P><FONT SIZE=3D2>&nbsp;&nbsp; Creating library mapserv.lib and object maps=
erv.exp</FONT>
<BR><FONT SIZE=3D2>LINK : warning LNK4098: defaultlib &quot;MSVCRT&quot; co=
nflicts with use of other libs; us</FONT>
<BR><FONT SIZE=3D2>e /NODEFAULTLIB:library</FONT>
<BR><FONT SIZE=3D2>mapserv.exe : fatal error LNK1169: one or more multiply =
defined symbols found</FONT>
<BR><FONT SIZE=3D2>NMAKE : fatal error U1077: 'link' : return code '0x491'<=
/FONT>
<BR><FONT SIZE=3D2>Stop.</FONT>
</P>

<CODE><FONT SIZE=3D3><BR>
<BR>
**********************************************************************<BR>
The information contained in this email and any subsequent<BR>
 correspondence is private and is intended solely for the <BR>
intended recipient(s). For those other than the intended<BR>
 recipient(s) any disclosure, copying, distribution, or any <BR>
action taken or omitted to be taken in reliance on such <BR>
information is prohibited and may be unlawful.<BR>
**********************************************************************<BR>
</FONT></CODE>
</BODY>
</HTML>
------_=_NextPart_001_01C2D2B2.225877B0--



More information about the mapserver-users mailing list