A deep understanding of the use of the operating system csapp. h

Source: Internet
Author: User

In an in-depth understanding of the operating system, there is a csapp. h header file. This is a header file compiled by the author. When using this header file, you need to include the csapp. h and csapp. c files in your system. The specific practices are as follows:

1: first move csapp. h and csapp. C to your home directory, assuming/home/TZ

Files are http://download.csdn.net/detail/tzasd89812/4206284

2: Move the file to/usr/include. sudo MV csapp. h csapp. c/usr/include

3: Add # include "csapp. c" to the csapp. h file"
Finally, because csapp. C contains a part of the thread, the-lpthread option must be added during compilation. Otherwise, many errors may occur.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.