The location of the header file in linux c language compilation

Let's talk about the location of the header file first, divided into two categories:
1. /usr/include
is some of our commonly used: such as stdio.h, stdlib.h

2. Some special modules need header files. For example, I need to make kernel-related software
. For example, printk() (this function is equivalent to printf() in user mode) requires kernel.h
to exist under /usr/include. linux directory

Guess you like

Origin blog.csdn.net/Fengfgg/article/details/113742320