【发布时间】:2015-12-24 03:53:45
【问题描述】:
我正在尝试为我的 c++ 项目设置谷歌测试框架,遵循 xcode 7.0 中的 guide 我到了最后一步 Build and Go 但经过数小时的在线搜索后,我无法让我的测试项目运行。编译器似乎没有找到它需要的头文件。 main.cpp:9:10:找不到“gtest/gtest.h”文件。来源是:
#include "gtest/gtest.h"
#include "calc.hpp"
int main(int argc, const char * argv[]) {
return 0;
}
我也试过
#include
【问题讨论】:
标签: c++ xcode macos unit-testing googletest