The use of the “csapp.h” header file in CSAPP Section 3. This is a header file written by the author. Include the csapp.h and csapp.c header files in your system (Linux does not use them by default), as follows:

File download address to http://csapp.cs.cmu.edu/public/code.html

1. Copy csapp.h and csapp.c from above and paste them locally, in the last line of the csapp.h file #endif /*CSAPP_H#include”csapp.c”

2. Move both files to /usr/include, which is the system’s header file

3. Since csapp.c contains a portion of the thread, it is important to use the -lpthread option when compiling, otherwise many errors will occur.

As shown in figure: