我试图在linux中为已有的CMakeLists.txt已经构建的项目构建二进制文件。我经常遇到一些问题,CMakeLists.txt试图添加一个头文件或源文件,但是不能。例如,这里有一个标题搜索: resource.h ...我在说fatal error: stdafx.h: No such fileor directory时遇到了一个错误,但是目录中的文件是StdAfx.h而不是stdafx.h。编辑:它看起来好像是区分大小写的<
直到我开始将#include "stdafx.h“放在每个cpp文件的开头,我的代码才会编译。当其他人通过Linux终端编译我的代码时,这会引起什么问题吗?如果我只是从下面的代码中删除#include "stdafx.h“,它会用C++11编译g++吗?#include "stdafx.h"using std::cout; using std::endl; using std::cin;
using namespace
我已经预编译了头文件stdafx.h,它是针对每个目标的。项目大致如下所示:include_directories(<prefix>/include_b) #<---- contains stdafx.hthat should NOT be used
include_directories(<project_dir>/) #<----- contains stdafx.h tha