In C language, the header file include, path is incorrect.

suppose there are two folders, An and B, where there is a folder C

.

in the

B folder, there is a B.C and B.hMagin B.h:

include "./C/C.h"

now in A.C in folder A:

include "./B/B.h"

after the link is correct, an error will be reported:

include "./B/B.h" C.h

if you want to modify the header file B.h:

include "./B/C/C.h     

can be passed at compile time;

but I think that if there are many similar header files in the B folder, it will take a lot of time to modify. I wonder if there is any way to prevent this from happening when writing B.h include?

Mar.12,2021

Please put a screenshot of your project structure folder.

Do not put in

include. the default is the current directory

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37c23-2c09f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37c23-2c09f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?