1

I am trying to compile and use Google test for my project. I have created .sln and .vcproj files successfully using CMake. Compilation was also successful of the .sln file. But, when I try to follow steps as pointed out in the "nonsensical101"-s answer as below: How to setup Google C++ Testing Framework (gtest) on Visual Studio 2005 I see that there is no "gtestd.lib" on my computer at all. Why??? That is also the error I get then when I try to compile a sample program.

Error:

Error 1 error LNK1104: cannot open file 'gtestd.lib' C:\Documents and Settings\User\my documents\visual studio 2010\Projects\String_GTest\String_GTest\LINK

ps. I am using Visual Studio 10.

4

1 回答 1

0

Google 的 C++ 测试框架有两个输出库:一个是 gtest.lib,另一个是 gtest_main.lib。根据 Nik Reiman 关于如何在 Visual Studio 2005 上设置 Google C++ 测试框架 (gtest)的回答,如果您没有这些,则意味着您没有成功编译它...

于 2013-04-04T10:36:49.700 回答