解决方法: 打开项目–属性–C/C++–常规–附加包含目录–添加 $(ProjectDir) 转载:https://blog.csdn.net/Sunshine__love/article/details/78884988