cURL / Mailing Lists / curl-library / Single Mail

curl-library

problems compiling lib and linking into example program with VC++ 6

From: Christie, Darren <Darren.Christie_at_anitetelecoms.com>
Date: Wed, 4 Jul 2001 10:01:52 +0100

I have compiled the libcURL as a dll and .lib both seem to compile fine
under VC++ 6. But when I try and use the .lib for example I get the
following error messages when trying to compile the the simple example in
the examples.

MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already defined in
LIBCD.lib(dbgheap.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _malloc already defined in
LIBCD.lib(dbgheap.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _realloc already defined in
LIBCD.lib(dbgheap.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _atoi already defined in
LIBCD.lib(atox.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strchr already defined in
LIBCD.lib(strchr.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __isctype already defined in
LIBCD.lib(isctype.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _tolower already defined in
LIBCD.lib(tolower.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in
LIBCD.lib(strncpy.obj)

I have compiled the .lib using the following command:

nmake -f makefile.vc6

The only place I can see the above redefined is in memdebug.c file, and this
is not being compiled when I run nmake. MALLOCDEBUG is not defined, so I am
lost as to why this is happening.

Can anyone help on this?

_______________________________________________
Curl-library mailing list
http://curl.haxx.se/libcurl/
Received on 2001-07-04