[英]#include <header.h> error: Cannot open source file “header.h”
I'm trying to include the header of a class called Person (Person.h) into my implementation of Person (Person.cpp), but I keep getting an error saying: 我正在尝试将名为Person(Person.h)的类的标头包含到我的Person(Person.cpp)的实现中,但是我不断收到错误消息:
"cannot open source file Person.h" “无法打开源文件Person.h”
The .h file and .cpp file are in the same directory: .h文件和.cpp文件位于同一目录中:
And these are my settings of the include directories: 这些是我对include目录的设置:
use #include "header.h"
instead of #include <header.h>
to include project files. 使用
#include "header.h"
代替#include <header.h>
来包含项目文件。 Read C++ Primer for more reference. 阅读C ++ Primer以获取更多参考。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.