[xml] static linking in VC++



hi,
i am new to libxml and find it a really useful tool :)

i am having a problem with linking the library files in visual studio (2005 express edition).
first i linked dynamically (libxml2.lib) and it was all working well. but when i tried to link it statically (with libxml2_a.lib, iconv_a.lib, zlib.lib and libxslt_a.lib (though i am not using xslt)) i got unresolved external symbol error. do i need to include anymore lib files? if so where can i get them?
can someone tell me where i went wrong or what i am missing?
i am posting the error message here:
1>libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__WSAGetLastError 0 referenced in function _socket_errno
1>libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__WSACleanup 0 referenced in function _xmlNanoHTTPCleanup
1>libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__WSACleanup 0
1>libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__closesocket 4 referenced in function _xmlNanoHTTPFreeCtxt
1>libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__closesocket 4
1>libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__select 20 referenced in function _xmlNanoHTTPSend
1>libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__select 20
1>libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__send 16 referenced in function _xmlNanoHTTPSend
1>libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__send 16
1>libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__recv 16 referenced in function _xmlNanoHTTPRecv
1>libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__recv 16
1>libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__getsockopt 20 referenced in function _xmlNanoHTTPConnectAttempt
1>libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol ___WSAFDIsSet 8 referenced in function _xmlNanoHTTPConnectAttempt
1>libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__connect 12 referenced in function _xmlNanoHTTPConnectAttempt
1>libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__connect 12
1>libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__ioctlsocket 12 referenced in function _xmlNanoHTTPConnectAttempt
1>libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__socket 12 referenced in function _xmlNanoHTTPConnectAttempt
1>libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__socket 12
1>libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__htons 4 referenced in function _xmlNanoHTTPConnectHost
1>libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__htons 4
1>libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__gethostbyname 4 referenced in function _xmlNanoHTTPConnectHost
1>libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__gethostbyname 4
1>libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__WSAStartup 8 referenced in function _xmlNanoHTTPInit
1>libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__WSAStartup 8
1>libxml2_a.lib(nanoftp.obj) : error LNK2019: unresolved external symbol __imp__listen 8 referenced in function _xmlNanoFTPGetConnection
1>libxml2_a.lib(nanoftp.obj) : error LNK2019: unresolved external symbol __imp__bind 12 referenced in function _xmlNanoFTPGetConnection
1>libxml2_a.lib(nanoftp.obj) : error LNK2019: unresolved external symbol __imp__getsockname 12 referenced in function _xmlNanoFTPGetConnection
1>D:\VC_Projects\Application\Debug\Application.exe : fatal error LNK1120: 17 unresolved externals
1>Build log was saved at "file://d:\VC_Projects\Application\Application\Debug\BuildLog.htm"
1>Application - 28 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========




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