标记它的人可能在使用Linux,而我正在用VS2013 for Windows进行开发。我发现Sleep()存在于两个不同的头文件中,取决于编译器是使用Windows还是Linux,我查看了web并找到了在预处理器中使用"#ifdef"的建议。我试过以下几种方法:#include<windows.h>#include<unistd.h>#include<unistd.h>
#
在OS和Linux上,它正确编译,但在Windows上,我得到了错误的Plugin with id "google-test" not found.findGoogleTestCoreLibForPlatform(Platform platform) { return "vs2013/gtest.lib"
// return "vs2013