openexr-devel
[Top][All Lists]
Advanced

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

RE: [Openexr-devel] Compiling woes on windows


From: Nick Porcino
Subject: RE: [Openexr-devel] Compiling woes on windows
Date: Fri, 29 Jul 2005 09:11:58 -0700

The problem is cross-linked standard libraries. OpenEXR is compiled with
multithreaded DLL versions of the libraries, the error messages indicate
that your project is linked against different versions of the libraries
than the version of OpenEXR you linked against. Go to your project
settings, and make sure that under the compiler settings, you have set
the code generation options to agree with the version of OpenEXR you
have selected. There are OpenEXR targets for both static linking and
DLL, and release and debug versions of both, but there is not an option
for a single threaded OpenEXR. Hope this helps.

Nick
 


-----Original Message-----
From: address@hidden
[mailto:address@hidden On
Behalf Of Frantz Joseph
Sent: Thursday, July 28, 2005 6:49 PM
To: Florian Kainz
Cc: address@hidden
Subject: Re: [Openexr-devel] Compiling woes on windows


Good point, I wasn't.  Even after doing that I still get linker errors
(see below).  When I don't include msvcprt.lib or msvcrt.lib then I get
a ton of errors in ilmimf.lib about std functions not being declared.
Yet I can get the imfexamples to build and run correctly. 
This is happening when I create a new project.

- Frantz

Linker errors:
================

msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class
std::basic_ostream<char,struct std::char_traits<char> > & __thiscall
std::basic_ostream<char,struct std::char_traits<char>
>::operator<<(float)"
(address@hidden@address@hidden@@@std@@address@hidden@Z) already
defined in rgbaInterfaceExamples.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(address@hidden@address@hidden@@address@hidden@2@@std@@address@hidden
01@@Z)
already defined in generalInterfaceExamples.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::~basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(void)"
(address@hidden@address@hidden@@address@hidden@2@@std@@address@hidden)
already defined in generalInterfaceExamples.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: void __thiscall
std::_Mutex::_Unlock(void)" (address@hidden@std@@QAEXXZ) already
defined in libcpmtd.lib(xmutex.obj)
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: void __thiscall
std::_Mutex::_Lock(void)" (address@hidden@std@@QAEXXZ) already defined in
libcpmtd.lib(xmutex.obj)
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: void __thiscall
std::locale::facet::_Register(void)"
(address@hidden@address@hidden@@QAEXXZ) already defined in
libcpmtd.lib(locale0.obj)
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: void __thiscall
std::locale::facet::_Incref(void)" (address@hidden@address@hidden@@QAEXXZ)
already defined in lowLevelIoExamples.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: static unsigned int
__cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *)"
(address@hidden@address@hidden@@address@hidden@2@@Z) already defined in
lowLevelIoExamples.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class
std::locale::facet const * __thiscall std::locale::_Getfacet(unsigned
int)const " (address@hidden@std@@address@hidden@address@hidden) already defined
in libcpmtd.lib(locale0.obj)
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::_Lockit::~_Lockit(void)" (address@hidden@@address@hidden) already defined
in libcpmtd.lib(xlock.obj)
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::_Lockit::_Lockit(int)" (address@hidden@@address@hidden@Z) already defined 
in
libcpmtd.lib(xlock.obj)
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(char const *)"
(address@hidden@address@hidden@@address@hidden@2@@std@@address@hidden
@Z)
already defined in generalInterfaceExamples.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(unsigned int,char)"
(address@hidden@address@hidden@@address@hidden@2@@std@@address@hidden@
Z)
already defined in libcpmtd.lib(cout.obj)
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(void)"
(address@hidden@address@hidden@@address@hidden@2@@std@@address@hidden)
already defined in lowLevelIoExamples.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "bool __cdecl
std::uncaught_exception(void)" (address@hidden@@YA_NXZ) already
defined in libcpmtd.lib(uncaught.obj)
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class
std::basic_ostream<char,struct std::char_traits<char> > & __thiscall
std::basic_ostream<char,struct std::char_traits<char> >::flush(void)"
(address@hidden@address@hidden@std@@@std@@address@hidden)
already defined in generalInterfaceExamples.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: void __thiscall
std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)"
(address@hidden@address@hidden@std@@@std@@QAEXXZ) already
defined in generalInterfaceExamples.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: void __thiscall
std::ios_base::clear(int,bool)" (address@hidden@std@@address@hidden) already
defined in libcpmtd.lib(ios.obj)
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > & __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::append(unsigned
int,char)"
(address@hidden@address@hidden@std@@address@hidden@2@@std@@QA
address@hidden@Z)
already defined in rgbaInterfaceExamples.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::basic_stringstream<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_stringstream<char,struct
std::char_traits<char>,class std::allocator<char> >(int)"
(address@hidden@address@hidden@@address@hidden@2@@std@@Q
address@hidden@Z)
already defined in lowLevelIoExamples.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __thiscall std::basic_stringstream<char,struct
std::char_traits<char>,class std::allocator<char> >::str(void)const "
(address@hidden@address@hidden@std@@address@hidden@2@@std@
@address@hidden@address@hidden@@address@hidden@2@@address@hidden)
already defined in lowLevelIoExamples.obj
msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > & __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::assign(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(address@hidden@address@hidden@std@@address@hidden@2@@std@@QA
address@hidden@@Z)
already defined in rgbaInterfaceExamples.obj
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _strncpy already defined in
LIBCMTD.lib(strncpy.obj)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: "public: virtual __thiscall
exception::~exception(void)" (??1exception@@address@hidden) already defined in
LIBCMTD.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: "public: __thiscall
exception::exception(void)" (??0exception@@address@hidden) already defined in
LIBCMTD.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: "public: __thiscall
bad_cast::bad_cast(char const *)" (??0bad_cast@@address@hidden@Z) already
defined in LIBCMTD.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: "public: __thiscall
exception::exception(class exception const &)"
(??0exception@@address@hidden@@Z) already defined in
LIBCMTD.lib(stdexcpt.obj)


_______________________________________________
Openexr-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/openexr-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]