openexr-devel
[Top][All Lists]
Advanced

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

[Openexr-devel] VS2005 and linking problems


From: Davide G
Subject: [Openexr-devel] VS2005 and linking problems
Date: Sat, 17 Jun 2006 10:03:00 +0200

Hi everybody!
I'm attempting to compile a project coverted in Visual Studio 2005 from Visual Studio .NET 2003 but linking always fails for unknown errors.

msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<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 &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?HDU?$char_traits@ address@hidden@@address@hidden@1@@std@@address@hidden@address@hidden@@address@hidden@2@@address@hidden@address@hidden) already defined in IlmImf.lib(ImfAttribute.obj)

msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?6DU?$char_traits@ address@hidden@@address@hidden@1@@std@@address@hidden@address@hidden@@@address@hidden@address@hidden@address@hidden@@address@hidden@2@@0@@Z) already defined in IlmImf.lib(ImfAttribute.obj)

If I tell the compiler to ignore msvcprt.lib I get tons of other errors, probably due to undefined standard symbols .

In C++ preprocessor -> code generation, I set Multi-threaded DLL (/MD), as somebody already suggested in this mailing list.

It is a very strange problem because on VS2003 the linking works perfectly.

Can anybody help me please?
Greetings.

D.

reply via email to

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