For understanding the header file of C language-general Linux technology-Linux programming and kernel information, see the following for details. When we compile a C program, when we want to use some specific functions, such as accessing data, to introduce some functions that have already been compiled, we must use include at the beginning of the program And then use the functions defined in this header file in the program. If this header file is not available, these functions in the program will be unrecognizable and cannot be compiled, the specific implementation of the functions defined in these header files will be in lib (linux) under the include directory. In fact, the header files are similar to interfaces in JAVA.
Speaking of library functions, there is a slight difference between linux and windows. in linux, the system will go to/include/lib to search *. so library function implementation, or you can also use environment variables to specify the directory to be searched; in windows, it is implemented through DLL, and the corresponding environment variables are registered through the registry. DLL has implemented some functions of the dynamic link library function.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service