Compile in release mode: /MD: success, /MT:failed ???
Posted by: Nguyen Van Giap
Date: October 13, 2010 10:01PM

Hi all,

I downloaded sql++ from this website, i compile it in release mode.
+ With runtime library Multi-Thread DLL (/MD) --> success.
+ With runtime library Multi-Thread (/MT) --> link

Error 3 error LNK2005: "public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined in libcpmt.lib(cerr.obj) msvcprt.lib
Error 4 error LNK2005: "public: int __thiscall std::ios_base::setf(int)" (?setf@ios_base@std@@QAEHH@Z) already defined in libcpmt.lib(cerr.obj) msvcprt.lib
Error 5 error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::endl(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z) already defined in tquery1.obj msvcprt.lib
Error 6 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)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in libcpmt.lib(cerr.obj) msvcprt.lib
<and more link error>

-------------------------
I want to compile my app with (/MT) option, so what must i do?
Thanks for reading :)

Options: ReplyQuote


Subject
Views
Written By
Posted
Compile in release mode: /MD: success, /MT:failed ???
2972
October 13, 2010 10:01PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.