blueadmin
asked on
Error link
Hello
I create a MFC project in VC++ 6.0, in my project i use a class write in C++ (use string type).
when i compile my project it appears error link like that:
"Linking...
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,str uct std::char_traits<char>,cla ss std::allocator<char> >::~basic_string<char,stru ct std::char_traits<char>,cla ss std::allocator<char> >(void)" (??1?$basic_strin
g@DU?$char_traits@D@std@@V ?$allocato r@D@2@@std @@QAE@XZ) already defined in ocl.lib(ora.obj)
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,str uct std::char_traits<char>,cla ss std::allocator<char> >::basic_string<char,struc t std::char_traits<char>,cla ss std::allocator<char> >(class basic_string<char,s
truct std::char_traits<char>,cla ss std::allocator<char> >::allocator<char> const &)" (??0?$basic_string@DU?$cha r_traits@D @std@@V?$a llocator@D @2@@std@@Q AE@ABV?$al locator@D@ 1@@Z) already defined in ocl.lib(ora.obj)
LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library
Bin/BMSOracleView.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe."
please help me.
thanks a lot.
I create a MFC project in VC++ 6.0, in my project i use a class write in C++ (use string type).
when i compile my project it appears error link like that:
"Linking...
msvcprtd.lib(MSVCP60D.dll)
g@DU?$char_traits@D@std@@V
msvcprtd.lib(MSVCP60D.dll)
truct std::char_traits<char>,cla
LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library
Bin/BMSOracleView.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe."
please help me.
thanks a lot.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.