comipayan / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

vs2005 link error #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hello!

What steps will reproduce the problem?
1.I used vs2005 build a vc project. The project static-link 'gtest.lib' , 
when i compiler , IDE prompt many link-errors( like : "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) has defined in msvcprtd.lib(MSVCP80D.dll)"

What version of the product are you using? On what operating system?
1.0.1

thanks;

Original issue reported on code.google.com by LeeHui.2...@gmail.com on 22 Jul 2008 at 8:44

GoogleCodeExporter commented 9 years ago
This looks like you built gtest and your tests using different versions of 
MSVC.  If
that's the case, please build them using the same version of MSVC and link the
results.  Please re-open the issue if that doesn't fix your problem.

Original comment by shiq...@gmail.com on 5 Aug 2008 at 7:07