Build LibRaw for Windows 64bit

Hi Everyone,
I've just downloaded LibRaw and I want to use it in my project. I got the source files and I built it in my Visual Studio 2010 as 64 bit. However, When I tried to integrate it to my project, I got the errors below. I believe there is something about the way it is compiled - my project usually only accepts static libs, that might be the problem.
Could you help me? Maybe telling me how to compile LibRaw as static lib...

Error	286	error LNK2005: atoi already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(atox.obj)
Error	295	error LNK2005: mainCRTStartup already defined in MSVCRTD.lib(crtexe.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(crt0.obj)
Error	281	error LNK2005: _initterm_e already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(crt0dat.obj)
Error	282	error LNK2005: exit already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(crt0dat.obj)
Error	283	error LNK2005: _exit already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(crt0dat.obj)
Error	284	error LNK2005: _cexit already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(crt0dat.obj)
Error	285	error LNK2005: _amsg_exit already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(crt0dat.obj)
Error	289	error LNK2005: __xi_a already defined in MSVCRTD.lib(cinitexe.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(crt0init.obj)
Error	290	error LNK2005: __xi_z already defined in MSVCRTD.lib(cinitexe.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(crt0init.obj)
Error	291	error LNK2005: __xc_a already defined in MSVCRTD.lib(cinitexe.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(crt0init.obj)
Error	292	error LNK2005: __xc_z already defined in MSVCRTD.lib(cinitexe.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(crt0init.obj)
Error	297	error LNK2005: _errno already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(dosmap.obj)
Error	296	error LNK2005: __set_app_type already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(errmode.obj)
Error	287	error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(hooks.obj)
Error	276	error LNK2005: _invalid_parameter already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(invarg.obj)
Error	277	error LNK2005: localeconv already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(lconv.obj)
Error	278	error LNK2005: _unlock already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(mlock.obj)
Error	279	error LNK2005: _lock already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(mlock.obj)
Error	275	error LNK2005: _configthreadlocale already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(setlocal.obj)
Error	294	error LNK2005: _strtoi64 already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(strtoq.obj)
Error	293	error LNK2005: tolower already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(tolower.obj)
Error	288	error LNK2005: signal already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(winsig.obj)
Error	280	error LNK2005: _XcptFilter already defined in MSVCRTD.lib(MSVCR100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\LIBCMT.lib(winxfltr.obj)
Error	268	error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(ios.obj)
Error	269	error LNK2005: "public: static void __cdecl std::ios_base::_Addstd(class std::ios_base *)" (?_Addstd@<a href="mailto:ios_base@std">ios_base@std</a>@@SAXPEAV12@@Z) already defined in msvcprtd.lib(MSVCP100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(ios.obj)
Error	270	error LNK2005: "private: static void __cdecl std::ios_base::_Ios_base_dtor(class std::ios_base *)" (?_Ios_base_dtor@<a href="mailto:ios_base@std">ios_base@std</a>@@CAXPEAV12@@Z) already defined in msvcprtd.lib(MSVCP100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(ios.obj)
Error	271	error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(iosptrs.obj)
Error	259	error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(locale0.obj)
Error	260	error LNK2005: "private: static void __cdecl std::locale::facet::_Facet_Register(class std::locale::facet *)" (?<a href="mailto:_Facet_Register@facet">_Facet_Register@facet</a>@<a href="mailto:locale@std">locale@std</a>@@CAXPEAV123@@Z) already defined in msvcprtd.lib(locale0_implib.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(locale0.obj)
Error	261	error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?<a href="mailto:_Getgloballocale@locale">_Getgloballocale@locale</a>@std@@CAPEAV_Locimp@<a href="mailto:12@XZ">12@XZ</a>) already defined in msvcprtd.lib(MSVCP100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(locale0.obj)
Error	262	error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)" (?_Locinfo_dtor@<a href="mailto:_Locinfo@std">_Locinfo@std</a>@@SAXPEAV12@@Z) already defined in msvcprtd.lib(MSVCP100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(locale0.obj)
Error	263	error LNK2005: "public: class std::_Yarn<char> & __cdecl std::_Yarn<char>::operator=(char const *)" (??4?$_Yarn@<a href="mailto:D@std">D@std</a>@@<a href="mailto:QEAAAEAV01@PEBD">QEAAAEAV01@PEBD</a>@Z) already defined in msvcprtd.lib(MSVCP100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(locale0.obj)
Error	264	error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)" (?_Locinfo_ctor@<a href="mailto:_Locinfo@std">_Locinfo@std</a>@@<a href="mailto:SAXPEAV12@PEBD">SAXPEAV12@PEBD</a>@Z) already defined in msvcprtd.lib(MSVCP100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(locale0.obj)
Error	265	error LNK2005: "protected: virtual __cdecl std::locale::_Locimp::~_Locimp(void)" (??<a href="mailto:1_Locimp@locale">1_Locimp@locale</a>@std@@<a href="mailto:MEAA@XZ">MEAA@XZ</a>) already defined in msvcprtd.lib(MSVCP100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(locale0.obj)
Error	266	error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(void)" (?<a href="mailto:_Init@locale">_Init@locale</a>@std@@CAPEAV_Locimp@<a href="mailto:12@XZ">12@XZ</a>) already defined in msvcprtd.lib(MSVCP100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(locale0.obj)
Error	267	error LNK2005: "public: static class std::locale const & __cdecl std::locale::classic(void)" (?<a href="mailto:classic@locale">classic@locale</a>@std@@<a href="mailto:SAAEBV12@XZ">SAAEBV12@XZ</a>) already defined in msvcprtd.lib(MSVCP100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(locale0.obj)
Error	272	error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(xlock.obj)
Error	273	error LNK2005: "public: __cdecl std::_Lockit::_Lockit(int)" (??<a href="mailto:0_Lockit@std">0_Lockit@std</a>@@QEAA@H@Z) already defined in msvcprtd.lib(MSVCP100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(xlock.obj)
Error	274	error LNK2005: "public: __cdecl std::_Lockit::~_Lockit(void)" (??<a href="mailto:1_Lockit@std">1_Lockit@std</a>@@<a href="mailto:QEAA@XZ">QEAA@XZ</a>) already defined in msvcprtd.lib(MSVCP100D.dll)	C:\Pluribus\svn\source\Trunk\build64\Server\src\libcpmt.lib(xlock.obj)
Error	198	error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj	C:\Pluribus\svn\source\Trunk\build64\Server\src\libraw_static.lib(libraw_datastream_st.obj)
Error	199	error LNK2005: "public: void __cdecl std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (?setstate@?$<a href="mailto:basic_ios@DU">basic_ios@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@QEAAXH_N@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	200	error LNK2005: "public: class std::basic_streambuf<char,struct std::char_traits<char> > * __cdecl std::basic_ios<char,struct std::char_traits<char> >::rdbuf(void)const " (?rdbuf@?$<a href="mailto:basic_ios@DU">basic_ios@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@QEBAPEAV?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@<a href="mailto:2@XZ">2@XZ</a>) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	201	error LNK2005: "public: int __cdecl std::ios_base::flags(void)const " (?flags@<a href="mailto:ios_base@std">ios_base@std</a>@@QEBAHXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	202	error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::basic_ostream<char,struct std::char_traits<char> >::flush(void)" (?flush@?$<a href="mailto:basic_ostream@DU">basic_ostream@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@<a href="mailto:QEAAAEAV12@XZ">QEAAAEAV12@XZ</a>) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	203	error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > * __cdecl std::basic_ios<char,struct std::char_traits<char> >::tie(void)const " (?tie@?$<a href="mailto:basic_ios@DU">basic_ios@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@QEBAPEAV?$<a href="mailto:basic_ostream@DU">basic_ostream@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@<a href="mailto:2@XZ">2@XZ</a>) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	204	error LNK2005: "public: bool __cdecl std::ios_base::good(void)const " (?good@<a href="mailto:ios_base@std">ios_base@std</a>@@QEBA_NXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	205	error LNK2005: "public: virtual __cdecl std::basic_ios<char,struct std::char_traits<char> >::~basic_ios<char,struct std::char_traits<char> >(void)" (??1?$<a href="mailto:basic_ios@DU">basic_ios@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@<a href="mailto:UEAA@XZ">UEAA@XZ</a>) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	206	error LNK2005: "public: virtual __cdecl std::basic_istream<char,struct std::char_traits<char> >::~basic_istream<char,struct std::char_traits<char> >(void)" (??1?$<a href="mailto:basic_istream@DU">basic_istream@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@<a href="mailto:UEAA@XZ">UEAA@XZ</a>) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	207	error LNK2005: "public: __cdecl std::basic_istream<char,struct std::char_traits<char> >::basic_istream<char,struct std::char_traits<char> >(class std::basic_streambuf<char,struct std::char_traits<char> > *,bool)" (??0?$<a href="mailto:basic_istream@DU">basic_istream@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@<a href="mailto:QEAA@PEAV">QEAA@PEAV</a>?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@1@_N@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	208	error LNK2005: "protected: __cdecl std::basic_ios<char,struct std::char_traits<char> >::basic_ios<char,struct std::char_traits<char> >(void)" (??0?$<a href="mailto:basic_ios@DU">basic_ios@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@<a href="mailto:IEAA@XZ">IEAA@XZ</a>) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	209	error LNK2005: "public: virtual __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::~basic_streambuf<char,struct std::char_traits<char> >(void)" (??1?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@<a href="mailto:UEAA@XZ">UEAA@XZ</a>) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	210	error LNK2005: "public: int __cdecl std::codecvt<char,char,int>::out(int &,char const *,char const *,char const * &,char *,char *,char * &)const " (?out@?$<a href="mailto:codecvt@DDH">codecvt@DDH</a>@std@@QEBAHAEAHPEBD1AEAPEBDPEAD3AEAPEAD@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	211	error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::_Pninc(void)" (?_Pninc@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@IEAAPEADXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	212	error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::epptr(void)const " (?epptr@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@IEBAPEADXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	213	error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::pptr(void)const " (?pptr@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@IEBAPEADXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	214	error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::_Gndec(void)" (?_Gndec@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@IEAAPEADXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	215	error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::eback(void)const " (?eback@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@IEBAPEADXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	216	error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::gptr(void)const " (?gptr@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@IEBAPEADXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	217	error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::egptr(void)const " (?egptr@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@IEBAPEADXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	218	error LNK2005: "public: int __cdecl std::codecvt<char,char,int>::in(int &,char const *,char const *,char const * &,char *,char *,char * &)const " (?in@?$<a href="mailto:codecvt@DDH">codecvt@DDH</a>@std@@QEBAHAEAHPEBD1AEAPEBDPEAD3AEAPEAD@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	219	error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::_Gninc(void)" (?_Gninc@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@IEAAPEADXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	220	error LNK2005: "public: void __cdecl std::basic_ios<char,struct std::char_traits<char> >::clear(int,bool)" (?clear@?$<a href="mailto:basic_ios@DU">basic_ios@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@QEAAXH_N@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	221	error LNK2005: "protected: __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::basic_streambuf<char,struct std::char_traits<char> >(void)" (??0?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@<a href="mailto:IEAA@XZ">IEAA@XZ</a>) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	222	error LNK2005: "protected: void __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::_Init(char * *,char * *,int *,char * *,char * *,int *)" (?_Init@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@IEAAXPEAPEAD0PEAH001@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	223	error LNK2005: "protected: void __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::_Init(void)" (?_Init@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@IEAAXXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	224	error LNK2005: "public: int __cdecl std::codecvt<char,char,int>::unshift(int &,char *,char *,char * &)const " (?unshift@?$<a href="mailto:codecvt@DDH">codecvt@DDH</a>@std@@QEBAHAEAHPEAD1AEAPEAD@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	225	error LNK2005: "public: bool __cdecl std::codecvt_base::always_noconv(void)const " (?always_noconv@<a href="mailto:codecvt_base@std">codecvt_base@std</a>@@QEBA_NXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	226	error LNK2005: "protected: void __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::setg(char *,char *,char *)" (?setg@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@IEAAXPEAD00@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	227	error LNK2005: "public: class std::locale __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::getloc(void)const " (?getloc@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@QEBA?AVlocale@<a href="mailto:2@XZ">2@XZ</a>) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	228	error LNK2005: "public: class std::locale::facet * __cdecl std::locale::facet::_Decref(void)" (?<a href="mailto:_Decref@facet">_Decref@facet</a>@<a href="mailto:locale@std">locale@std</a>@@<a href="mailto:QEAAPEAV123@XZ">QEAAPEAV123@XZ</a>) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	229	error LNK2005: "public: char __cdecl std::basic_ios<char,struct std::char_traits<char> >::widen(char)const " (?widen@?$<a href="mailto:basic_ios@DU">basic_ios@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@QEBADD@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	230	error LNK2005: "public: void __cdecl std::locale::facet::_Incref(void)" (?<a href="mailto:_Incref@facet">_Incref@facet</a>@<a href="mailto:locale@std">locale@std</a>@@QEAAXXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	231	error LNK2005: "public: static unsigned __int64 __cdecl std::codecvt<char,char,int>::_Getcat(class std::locale::facet const * *,class std::locale const *)" (?_Getcat@?$<a href="mailto:codecvt@DDH">codecvt@DDH</a>@std@@<a href="mailto:SA_KPEAPEBVfacet@locale">SA_KPEAPEBVfacet@locale</a>@2@PEBV42@@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	232	error LNK2005: "public: __cdecl std::locale::id::operator unsigned __int64(void)" (??<a href="mailto:Bid@locale">Bid@locale</a>@std@@QEAA_KXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	233	error LNK2005: "public: int __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::sbumpc(void)" (?sbumpc@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@QEAAHXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	234	error LNK2005: "public: int __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::snextc(void)" (?snextc@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@QEAAHXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	235	error LNK2005: "public: int __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::sgetc(void)" (?sgetc@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@QEAAHXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	236	error LNK2005: "public: bool __cdecl std::basic_istream<char,struct std::char_traits<char> >::_Ipfx(bool)" (?_Ipfx@?$<a href="mailto:basic_istream@DU">basic_istream@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@QEAA_N_N@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	237	error LNK2005: "protected: void __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::pbump(int)" (?pbump@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@IEAAXH@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	238	error LNK2005: "protected: void __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::gbump(int)" (?gbump@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@IEAAXH@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	239	error LNK2005: "protected: void __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::setp(char *,char *)" (?setp@?$<a href="mailto:basic_streambuf@DU">basic_streambuf@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@IEAAXPEAD0@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	240	error LNK2005: "public: char __cdecl std::ctype<char>::widen(char)const " (?widen@?$ctype@<a href="mailto:D@std">D@std</a>@@QEBADD@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	241	error LNK2005: "public: static unsigned __int64 __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *,class std::locale const *)" (?_Getcat@?$ctype@<a href="mailto:D@std">D@std</a>@@<a href="mailto:SA_KPEAPEBVfacet@locale">SA_KPEAPEBVfacet@locale</a>@2@PEBV42@@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	242	error LNK2005: "public: bool __cdecl std::ctype<char>::is(short,char)const " (?is@?$ctype@<a href="mailto:D@std">D@std</a>@@QEBA_NFD@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	243	error LNK2005: "public: __cdecl std::_Locinfo::~_Locinfo(void)" (??<a href="mailto:1_Locinfo@std">1_Locinfo@std</a>@@<a href="mailto:QEAA@XZ">QEAA@XZ</a>) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	244	error LNK2005: "public: __cdecl std::_Locinfo::_Locinfo(char const *)" (??<a href="mailto:0_Locinfo@std">0_Locinfo@std</a>@@<a href="mailto:QEAA@PEBD">QEAA@PEBD</a>@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	245	error LNK2005: "public: char const * __cdecl std::_Yarn<char>::c_str(void)const " (?c_str@?$_Yarn@<a href="mailto:D@std">D@std</a>@@QEBAPEBDXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	246	error LNK2005: "public: virtual __cdecl std::locale::facet::~facet(void)" (??<a href="mailto:1facet@locale">1facet@locale</a>@std@@<a href="mailto:UEAA@XZ">UEAA@XZ</a>) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	247	error LNK2005: "protected: __cdecl std::locale::facet::facet(unsigned __int64)" (??<a href="mailto:0facet@locale">0facet@locale</a>@std@@IEAA@_K@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	248	error LNK2005: "public: char const * __cdecl std::_Locinfo::_Gettrue(void)const " (?_Gettrue@<a href="mailto:_Locinfo@std">_Locinfo@std</a>@@QEBAPEBDXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	249	error LNK2005: "public: char const * __cdecl std::_Locinfo::_Getfalse(void)const " (?_Getfalse@<a href="mailto:_Locinfo@std">_Locinfo@std</a>@@QEBAPEBDXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	250	error LNK2005: "public: struct _Cvtvec __cdecl std::_Locinfo::_Getcvt(void)const " (?_Getcvt@<a href="mailto:_Locinfo@std">_Locinfo@std</a>@@QEBA?AU_Cvtvec@@XZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	251	error LNK2005: "public: struct lconv const * __cdecl std::_Locinfo::_Getlconv(void)const " (?_Getlconv@<a href="mailto:_Locinfo@std">_Locinfo@std</a>@@QEBAPEBUlconv@@XZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	252	error LNK2005: "public: class std::basic_istream<char,struct std::char_traits<char> > & __cdecl std::basic_istream<char,struct std::char_traits<char> >::operator>>(int &)" (??5?$<a href="mailto:basic_istream@DU">basic_istream@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@<a href="mailto:QEAAAEAV01@AEAH">QEAAAEAV01@AEAH</a>@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	253	error LNK2005: "public: bool __cdecl std::ios_base::fail(void)const " (?fail@<a href="mailto:ios_base@std">ios_base@std</a>@@QEBA_NXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	254	error LNK2005: "public: void __cdecl std::basic_istream<char,struct std::char_traits<char> >::`vbase destructor'(void)" (??_D?$<a href="mailto:basic_istream@DU">basic_istream@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@QEAAXXZ) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	255	error LNK2005: "public: class std::basic_istream<char,struct std::char_traits<char> > & __cdecl std::basic_istream<char,struct std::char_traits<char> >::operator>>(float &)" (??5?$<a href="mailto:basic_istream@DU">basic_istream@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@<a href="mailto:QEAAAEAV01@AEAM">QEAAAEAV01@AEAM</a>@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	256	error LNK2005: "public: class std::locale __cdecl std::ios_base::getloc(void)const " (?getloc@<a href="mailto:ios_base@std">ios_base@std</a>@@QEBA?AVlocale@<a href="mailto:2@XZ">2@XZ</a>) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	257	error LNK2005: "public: __cdecl std::locale::id::id(unsigned __int64)" (??<a href="mailto:0id@locale">0id@locale</a>@std@@QEAA@_K@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	258	error LNK2005: "public: class std::basic_istream<char,struct std::char_traits<char> > & __cdecl std::basic_istream<char,struct std::char_traits<char> >::getline(char *,__int64,char)" (?getline@?$<a href="mailto:basic_istream@DU">basic_istream@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@QEAAAEAV12@PEAD_JD@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	298	error LNK2005: "public: class std::basic_istream<char,struct std::char_traits<char> > & __cdecl std::basic_istream<char,struct std::char_traits<char> >::getline(char *,__int64)" (?getline@?$<a href="mailto:basic_istream@DU">basic_istream@DU</a>?$char_traits@<a href="mailto:D@std">D@std</a>@@@std@@QEAAAEAV12@PEAD_J@Z) already defined in libraw_static.lib(libraw_datastream_st.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\msvcprtd.lib(MSVCP100D.dll)
Error	299	error LNK2005: _stricmp already defined in LIBCMT.lib(stricmp.obj)	C:\Pluribus\svn\source\Trunk\build64\Server\src\MSVCRTD.lib(MSVCR100D.dll)
Error	303	error LNK1169: one or more multiply defined symbols found	C:\Pluribus\svn\source\Trunk\build64\Server\src\Debug\Pluribus.exe

Ps: I've already tried to adjust the Makefile.msvc by myself, to force static lib compilation. However, in a paralel project that uses libraw isolated, I got this errors:

Error	13	error LNK1120: 8 unresolved externals	C:\Pluribus\svn\source\Trunk\CameraControlApps\DSLR\RawReaders\x64\Debug\RawReaders.exe
Error	6	error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl LibRaw::~LibRaw(void)" (__imp_??1LibRaw@@<a href="mailto:QEAA@XZ">QEAA@XZ</a>) referenced in function "public: void * __cdecl LibRaw::`scalar deleting destructor'(unsigned int)" (??_GLibRaw@@QEAAPEAXI@Z)	C:\Pluribus\svn\source\Trunk\CameraControlApps\DSLR\RawReaders\LibRawOpener.obj
Error	5	error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl LibRaw::LibRaw(unsigned int)" (__imp_??0LibRaw@@QEAA@I@Z) referenced in function "public: __cdecl LibRawOpener::LibRawOpener(int,int,int,double,double,float,float,float,float)" (??0LibRawOpener@@<a href="mailto:QEAA@HHHNNMMMM">QEAA@HHHNNMMMM</a>@Z)	C:\Pluribus\svn\source\Trunk\CameraControlApps\DSLR\RawReaders\LibRawOpener.obj
Error	12	error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __cdecl LibRaw::dcraw_ppm_tiff_writer(char const *)" (__imp_?<a href="mailto:dcraw_ppm_tiff_writer@LibRaw">dcraw_ppm_tiff_writer@LibRaw</a>@@QEAAHPEBD@Z) referenced in function "public: virtual int __cdecl LibRawOpener::saveFile(char const *)" (?<a href="mailto:saveFile@LibRawOpener">saveFile@LibRawOpener</a>@@UEAAHPEBD@Z)	C:\Pluribus\svn\source\Trunk\CameraControlApps\DSLR\RawReaders\LibRawOpener.obj
Error	8	error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __cdecl LibRaw::dcraw_process(void)" (__imp_?<a href="mailto:dcraw_process@LibRaw">dcraw_process@LibRaw</a>@@QEAAHXZ) referenced in function "private: int __cdecl LibRawOpener::uploadUnpackProcess(void)" (?<a href="mailto:uploadUnpackProcess@LibRawOpener">uploadUnpackProcess@LibRawOpener</a>@@AEAAHXZ)	C:\Pluribus\svn\source\Trunk\CameraControlApps\DSLR\RawReaders\LibRawOpener.obj
Error	10	error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __cdecl LibRaw::open_buffer(void *,unsigned __int64)" (__imp_?<a href="mailto:open_buffer@LibRaw">open_buffer@LibRaw</a>@@QEAAHPEAX_K@Z) referenced in function "public: virtual int __cdecl LibRawOpener::openBuffer(void *,int)" (?<a href="mailto:openBuffer@LibRawOpener">openBuffer@LibRawOpener</a>@@UEAAHPEAXH@Z)	C:\Pluribus\svn\source\Trunk\CameraControlApps\DSLR\RawReaders\LibRawOpener.obj
Error	11	error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __cdecl LibRaw::open_file(char const *,__int64)" (__imp_?<a href="mailto:open_file@LibRaw">open_file@LibRaw</a>@@QEAAHPEBD_J@Z) referenced in function "public: virtual int __cdecl LibRawOpener::openFile(char const *)" (?<a href="mailto:openFile@LibRawOpener">openFile@LibRawOpener</a>@@UEAAHPEBD@Z)	C:\Pluribus\svn\source\Trunk\CameraControlApps\DSLR\RawReaders\LibRawOpener.obj
Error	9	error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __cdecl LibRaw::unpack(void)" (__imp_?<a href="mailto:unpack@LibRaw">unpack@LibRaw</a>@@QEAAHXZ) referenced in function "private: int __cdecl LibRawOpener::uploadUnpackProcess(void)" (?<a href="mailto:uploadUnpackProcess@LibRawOpener">uploadUnpackProcess@LibRawOpener</a>@@AEAAHXZ)	C:\Pluribus\svn\source\Trunk\CameraControlApps\DSLR\RawReaders\LibRawOpener.obj
Error	7	error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl LibRaw::recycle(void)" (__imp_?<a href="mailto:recycle@LibRaw">recycle@LibRaw</a>@@QEAAXXZ) referenced in function "public: virtual void __cdecl LibRawOpener::release(void)" (?<a href="mailto:release@LibRawOpener">release@LibRawOpener</a>@@UEAAXXZ)	C:\Pluribus\svn\source\Trunk\CameraControlApps\DSLR\RawReaders\LibRawOpener.obj

Thanks in advance for your help.

Forums: 

You may use LibRaw Visual

You may use LibRaw Visual Studio project files (in LibRaw/buildfiles catalog).

It works for me.

-- Alex Tutubalin