补充一些发现:
//#include "SDL/SDL2.h" 通过
//#include <SDL/SDL2.h> 通过
//lll#include "SDL/SDL2.h"ppp 通过
/*#include "SDL/SDL2.h"*/ 通过
string str("#include <SDL/SDL2.h>"); 这特么也通过了
//#finclude "SDL/SDL2.h" 失败
//#include "SDL/SDL2.h" (#include 和路径间有两个空格) 失败
就像有东西直接在main函数所在源文件里查找"#include "SDL/SDL2.h"或"#include <SDL/SDL2.h>" 这两个字符串,不管它被注释还是在字符串里,有就给你编译,没有拉倒。
//#include "SDL/SDL2.h" 通过
//#include <SDL/SDL2.h> 通过
//lll#include "SDL/SDL2.h"ppp 通过
/*#include "SDL/SDL2.h"*/ 通过
string str("#include <SDL/SDL2.h>"); 这特么也通过了
//#finclude "SDL/SDL2.h" 失败
//#include "SDL/SDL2.h" (#include 和路径间有两个空格) 失败
就像有东西直接在main函数所在源文件里查找"#include "SDL/SDL2.h"或"#include <SDL/SDL2.h>" 这两个字符串,不管它被注释还是在字符串里,有就给你编译,没有拉倒。