Linking to Collada DOM in MSVS2005

Hi,
Ive problems linking to collada 1.4 patch 3 libraries although it seems Ive everything as described in the programming guide.
That`s what I put under Additional dependancies
zlib.lib iconv_a.lib libxml2.lib libcollada_LIBXMLPlugin.lib libcollada_STLDatabase.lib libcollada_dae.lib libcollada_dom.lib

Runtime Library is set to multithreaded debug.

Linking…
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _printf already defined in LIBCMTD.lib(printf.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _sprintf already defined in LIBCMTD.lib(sprintf.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _strncmp already defined in LIBCMTD.lib(strncmp.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _fflush already defined in LIBCMTD.lib(fflush.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: ___iob_func already defined in LIBCMTD.lib(_file.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _isdigit already defined in LIBCMTD.lib(_ctype.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _isalpha already defined in LIBCMTD.lib(_ctype.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _malloc already defined in LIBCMTD.lib(dbgheap.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _free already defined in LIBCMTD.lib(dbgheap.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _memmove already defined in LIBCMTD.lib(memmove.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: “private: __thiscall type_info::type_info(class type_info const &)” (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: “private: class type_info & __thiscall type_info::operator=(class type_info const &)” (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
msvcprt.lib(MSVCP80.dll) : error LNK2005: “public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(class std::basic_string,class std::allocator > const &)” (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in ThorWindows.obj
msvcprt.lib(MSVCP80.dll) : error LNK2005: “public: __thiscall std::basic_string,class std::allocator >::~basic_string,class std::allocator >(void)” (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in ThorWindows.obj
msvcprt.lib(MSVCP80.dll) : error LNK2005: “public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(char const *)” (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in ThorWindows.obj
MSVCRT.lib(MSVCR80.dll) : error LNK2005: “public: __thiscall std::exception::exception(char const * const &)” (??0exception@std@@QAE@ABQBD@Z) already defined in LIBCMTD.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: “public: virtual __thiscall std::exception::~exception(void)” (??1exception@std@@UAE@XZ) already defined in LIBCMTD.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: “public: __thiscall std::exception::exception(void)” (??0exception@std@@QAE@XZ) already defined in LIBCMTD.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: “public: __thiscall std::exception::exception(class std::exception const &)” (??0exception@std@@QAE@ABV01@@Z) already defined in LIBCMTD.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _fclose already defined in LIBCMTD.lib(fclose.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _memmove_s already defined in LIBCMTD.lib(memmove_s.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _realloc already defined in LIBCMTD.lib(dbgheap.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _getenv already defined in LIBCMTD.lib(getenv.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: __errno already defined in LIBCMTD.lib(dosmap.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: __isnan already defined in LIBCMTD.lib(ieeemisc.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: __fpclass already defined in LIBCMTD.lib(ieeemisc.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _floor already defined in LIBCMTD.lib(floor_pentium4.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _strchr already defined in LIBCMTD.lib(strchr.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _strtol already defined in LIBCMTD.lib(strtol.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: __close already defined in LIBCMTD.lib(close.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: __read already defined in LIBCMTD.lib(read.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: __open already defined in LIBCMTD.lib(open.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: __write already defined in LIBCMTD.lib(write.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _abort already defined in LIBCMTD.lib(abort.obj)

LINK : warning LNK4098: defaultlib ‘MSVCRT’ conflicts with use of other libs; use /NODEFAULTLIB:library

libcollada_dae.lib(daeErrorHandler.obj) : error LNK2019: unresolved external symbol “public: __thiscall stdErrPlugin::stdErrPlugin(void)” (??0stdErrPlugin@@QAE@XZ) referenced in function “public: static class daeErrorHandler * __cdecl daeErrorHandler::get(void)” (?get@daeErrorHandler@@SAPAV1@XZ)
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 LNK2001: unresolved external symbol __imp__connect@12
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 LNK2001: unresolved external symbol __imp__gethostbyname@4
libxml2_a.lib(nanohttp.obj) : error LNK2019: unresolved external symbol __imp__WSAStartup@8 referenced in function _xmlNanoHTTPInit
libxml2_a.lib(nanoftp.obj) : error LNK2001: unresolved external symbol __imp__WSAStartup@8
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

Try the multithreaded debug DLL. That should fix your first set of errors, but I’m not sure about the second set.

Try the multithreaded debug DLL. That should fix your first set of errors, but I’m not sure about the second set.[/quote]

Thanks that helped with errors but the conflict of libraries (msvcrtd.lib) has stayed.Also these errors can be ignored as warnings if to set linker option /FORCE:MULTIPLE.

Are you trying to link against .lib files that were provided with the Collada DOM? AFAIK they provide libraries that were compiled with VS 2003, which means you’d probably have problems linking against those libraries in a VS 2005 app. Try rebuilding the Collada DOM sources with VS 2005. That will get you a lib/dll file that you should be able to link against safely.

Ignore my last post, they don’t provide any pre-built libraries with the Collada DOM.

Try adding libcollada_stdErrPlugin.lib and wsock32.lib. Also, I think you want libxml2_a.lib instead of libxml2.lib, but maybe that was just a typo.