简体   繁体   中英

visual studio 2005 C++ include path

In a visual C++ project, #include "abc/def/gh" means: Hey compiler, go to the abc folder which is in the same disk directory as any(first found if there are multiple found; if none is found, then try the directory where the project file is located) of the include paths, then go further down into the def folder and include the gh file inside it.

Is it true?

The key thing is, path that appears in #include is physical path on the disk, right?

Thanks

Yes, your analysis is correct and the path corresponds to physical path on the disk.

But there is a difference when the headers are enclosed in <> and "" . When enclosed in <> , the header is present in the standard headers location. But if enclosed in "" , it is a user defined header file present in the project's directory.

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