[xml] weird linker errors





I'm trying to write a simple program that uses libxml linked statically, and I did put "#define LIBXML_STATIC" before the includes too (it did not work too add LIBXML_STATIC to the preprocessor items list either). I use Windows, MSVC 7.1 and the precompiled binaries of both iconv and libxml. In the project properties I have configured runtime to "Multi-threaded Debug Dll (/MDd)" which I must have because of another lib I'm using.

Anyway, when linking in MSVC i get all these weird errors (see below).



regards,
martin


LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library libxml2_a.lib(xmlIO.obj) : error LNK2019: unresolved external symbol _gzopen referenced in function _xmlGzfileOpen_real libxml2_a.lib(xmlIO.obj) : error LNK2019: unresolved external symbol _gzdopen referenced in function _xmlGzfileOpen_real libxml2_a.lib(xmlIO.obj) : error LNK2019: unresolved external symbol _gzread referenced in function _xmlGzfileRead libxml2_a.lib(xmlIO.obj) : error LNK2019: unresolved external symbol _gzwrite referenced in function _xmlGzfileWrite libxml2_a.lib(xmlIO.obj) : error LNK2019: unresolved external symbol _gzclose referenced in function _xmlGzfileClose libxml2_a.lib(xmlIO.obj) : error LNK2019: unresolved external symbol _deflateEnd referenced in function _xmlFreeZMemBuff libxml2_a.lib(xmlIO.obj) : error LNK2019: unresolved external symbol _crc32 referenced in function _xmlCreateZMemBuff libxml2_a.lib(xmlIO.obj) : error LNK2019: unresolved external symbol _deflateInit2_ referenced in function _xmlCreateZMemBuff libxml2_a.lib(xmlIO.obj) : error LNK2019: unresolved external symbol _deflate referenced in function _xmlZMemBuffAppend libxml2_a.lib(xmlIO.obj) : error LNK2019: unresolved external symbol _gzrewind referenced in function ___xmlParserInputBufferCreateFilename libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__WSAGetLastError 0 referenced in function _socket_errno libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__WSACleanup 0 referenced in function _xmlNanoHTTPCleanup libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__WSACleanup 0 libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__closesocket 4 referenced in function _xmlNanoHTTPFreeCtxt libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__closesocket 4 libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__select 20 referenced in function _xmlNanoHTTPSend libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__select 20 libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__send 16 referenced in function _xmlNanoHTTPSend libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__send 16 libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__recv 16 referenced in function _xmlNanoHTTPRecv libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__recv 16 libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__getsockopt 20 referenced in function _xmlNanoHTTPConnectAttempt libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol ___WSAFDIsSet 8 referenced in function _xmlNanoHTTPConnectAttempt libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__connect 12 referenced in function _xmlNanoHTTPConnectAttempt libxml2_a.lib(nanoftp.obj) : error LNK2019: unresolved external symbol __imp__connect 12 referenced in function _xmlNanoFTPConnect libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__ioctlsocket 12 referenced in function _xmlNanoHTTPConnectAttempt libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__socket 12 referenced in function _xmlNanoHTTPConnectAttempt libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__socket 12 libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__htons 4 referenced in function _xmlNanoHTTPConnectHost libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__htons 4 libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__gethostbyname 4 referenced in function _xmlNanoHTTPConnectHost libxml2_a.lib(nanoftp.obj) : error LNK2019: unresolved external symbol __imp__gethostbyname 4 referenced in function _xmlNanoFTPConnect libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__WSAStartup 8 referenced in function _xmlNanoHTTPInit libxml2_a.lib(nanoftp.obj) : error LNK2019: unresolved external symbol __imp__WSAStartup 8 referenced in function _xmlNanoFTPParseList libxml2_a.lib(nanoftp.obj) : error LNK2019: unresolved external symbol __imp__listen 8 referenced in function _xmlNanoFTPGetConnection libxml2_a.lib(nanoftp.obj) : error LNK2019: unresolved external symbol __imp__bind 12 referenced in function _xmlNanoFTPGetConnection libxml2_a.lib(nanoftp.obj) : error LNK2019: unresolved external symbol __imp__getsockname 12 referenced in function _xmlNanoFTPGetConnection
Debug/plggamegui.dll : fatal error LNK1120: 27 unresolved externals



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