简体   繁体   中英

#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:

"cannot open source file Person.h"

The .h file and .cpp file are in the same directory: 在此处输入图片说明

And these are my settings of the include directories: 在此处输入图片说明

use #include "header.h" instead of #include <header.h> to include project files. Read C++ Primer for more reference.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM