Fix: Changed the testing project to use MTd. From the Property Pages select Configuration Properties ==> C/C++ ==> Code Generation ==> Runtime Library ==> Multi-threaded (/MT).
Monday, June 21, 2010
msvcprtd.lib(MSVCP100D.dll) : error LNK2005: already defined in gtestd.lib(gtest.obj)
This error occurs when the C/C++ Code Generation Runtime Library in gtest is defined differently from testing code using it. The gtest project was defined as MTd (Multi-threaded Debug) and the testing project defined as MDd (Multi-threaded DLL).
Subscribe to:
Post Comments (Atom)
3 comments:
Thanks a bunch for this. Saved me tons of time trying to figure it out on my own.
Thanks Stan. Great post!
Helped me as well. Thank you.
Post a Comment