/stackoverflow.cpp: In member function ‘void IosTest_DummyTest_Test<gtest_TypeParam_>::TestBody() [withgtest_TypeParam_ = std::basic_istream<char, std::char_traits<char> >]’: #include "gtest/
在cmake中使用FetchContent()将gtest集成到项目中似乎缺少了gtest/gtest.h的相关包含路径。"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build的结果是:
Cannot open include file: 'gtest/<
\test\gtest-1.8.0\googletest\include\gtest\internal\gtest-port.h:1782: error: 'AutoHandle' does not name当我在Ubuntu或任何GNU/Linux发行版中构建yaml-cpp,并且构建几乎没有任何问题时,就不会发生这种情况。
那么为什么这些错误只发生在Windows而不是Ubuntu中呢?当我尝试使用MSVC 2017 64位套件在Qt Creator中构建yaml-cpp时,发生了以下错误