C Language Header File Inclusion Path Resolution: Where Does the Compiler Look for Files?

C Language Header File Inclusion Path Resolution: Where Does the Compiler Look for Files?

In practical development, one often encounters the following question: #include "imx6ul.h" Clearly, this header file is not in the directory of the current <span>.c</span> file, yet the compilation passes smoothly. Why is this? This article will explain the header file search rules in C language for <span>#include</span>. 📌 1. Two Forms of <span>#include</span> <span>#include "filename"</span> … Read more