hello, all
When I compiled a sample which shows how to use zlib and is provided by
the official web site in VC7, the following errors occured.
Linking...
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _malloc already defined in
LIBC.lib(malloc.obj)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _free already defined in
LIBC.lib(free.obj)
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
libs; use /NODEFAULTLIB:library
Release/zlib_test1.exe : fatal error LNK1169: one or more multiply defined
symbols found
zlib just provide VC6 project of zlib, but I compliled it with VC7
successfully. I know msvcrt.lib and libc.lib are both provieded by VC. I
wanna know what might raise the above errors generally.
THANKS!