[xml] Linking libxml with VC++ 6



I  use "This is libxml2, version 2.6.4, binary package for the native
Win32/IA32
platform." with my VC++ 6 MFC application. If I link my application with the
shorter
lib file libxml2.lib it works OK but requires the libxml2.dll, iconv.dll and
zlib.dll.

I would prefer including all files with the application but if I use as
linker library modules
 libxml2_a.lib iconv_a.lib zlib_a.lib then the linker displays following
errors. What is wrong here?

regards
Kaarle

--
Kaarle Kaila
email: kaarle dot kaila at iki dot fi
www.iki.fi/kaila


MSVCRT.lib(MSVCRT.dll) : error LNK2005: _toupper already defined in
libcmtd.lib(toupper.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _memmove already defined in
libcmtd.lib(memmove.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __errno already defined in
libcmtd.lib(dosmap.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __snprintf already defined in
libcmtd.lib(snprintf.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fwrite already defined in
libcmtd.lib(fwrite.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __vsnprintf already defined in
libcmtd.lib(vsnprint.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fread already defined in
libcmtd.lib(fread.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in
libcmtd.lib(fclose.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncmp already defined in
libcmtd.lib(strncmp.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fflush already defined in
libcmtd.lib(fflush.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in
libcmtd.lib(strncpy.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __isnan already defined in
libcmtd.lib(ieeemisc.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __fpclass already defined in
libcmtd.lib(ieeemisc.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strchr already defined in
libcmtd.lib(strchr.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _malloc already defined in
libcmtd.lib(dbgheap.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _realloc already defined in
libcmtd.lib(dbgheap.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already defined in
libcmtd.lib(dbgheap.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _getenv already defined in
libcmtd.lib(getenv.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strtol already defined in
libcmtd.lib(strtol.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fputc already defined in
libcmtd.lib(fputc.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _abort already defined in
libcmtd.lib(abort.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _sprintf already defined in
libcmtd.lib(sprintf.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _ftell already defined in
libcmtd.lib(ftell.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __fdopen already defined in
libcmtd.lib(fdopen.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fseek already defined in
libcmtd.lib(fseek.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _calloc already defined in
libcmtd.lib(dbgheap.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __read already defined in
libcmtd.lib(read.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __close already defined in
libcmtd.lib(close.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __write already defined in
libcmtd.lib(write.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __getcwd already defined in
libcmtd.lib(getcwd.obj)
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4049: locally defined symbol "_xmlFree" imported
libxml2_a.lib(nanohttp.obj) : error LNK2001: unresolved external symbol
__imp__WSAStartup 8
libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol
__imp__WSAStartup 8
libxml2_a.lib(nanohttp.obj) : error LNK2001: unresolved external symbol
__imp__WSACleanup 0
libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol
__imp__WSACleanup 0
libxml2_a.lib(nanohttp.obj) : error LNK2001: unresolved external symbol
__imp__select 20
libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol
__imp__select 20
libxml2_a.lib(nanohttp.obj) : error LNK2001: unresolved external symbol
__imp__recv 16
libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol
__imp__recv 16
libxml2_a.lib(nanohttp.obj) : error LNK2001: unresolved external symbol
__imp__WSAGetLastError 0
libxml2_a.lib(nanohttp.obj) : error LNK2001: unresolved external symbol
__imp__closesocket 4
libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol
__imp__closesocket 4
libxml2_a.lib(nanohttp.obj) : error LNK2001: unresolved external symbol
__imp__send 16
libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol
__imp__send 16
libxml2_a.lib(nanohttp.obj) : error LNK2001: unresolved external symbol
__imp__htons 4
libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol
__imp__htons 4
libxml2_a.lib(nanohttp.obj) : error LNK2001: unresolved external symbol
__imp__gethostbyname 4
libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol
__imp__gethostbyname 4
libxml2_a.lib(nanohttp.obj) : error LNK2001: unresolved external symbol
__imp__getsockopt 20
libxml2_a.lib(nanohttp.obj) : error LNK2001: unresolved external symbol
___WSAFDIsSet 8
libxml2_a.lib(nanohttp.obj) : error LNK2001: unresolved external symbol
__imp__connect 12
libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol
__imp__connect 12
libxml2_a.lib(nanohttp.obj) : error LNK2001: unresolved external symbol
__imp__ioctlsocket 12
libxml2_a.lib(nanohttp.obj) : error LNK2001: unresolved external symbol
__imp__socket 12
libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol
__imp__socket 12
libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol
__imp__listen 8
libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol
__imp__bind 12
libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol
__imp__getsockname 12
Debug/Genealog.exe : fatal error LNK1120: 17 unresolved externals
Error executing link.exe.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]