Run the code in the <APUE> book on Ubuntu about "apue. h ".

Source: Internet
Author: User
In the entire book, APUE has such an include "apue. h" pre-processing statement ~ For the source code and related downloads, refer to ghost ~ There are also some constants and function declarations (which I don't know yet). error. c defines several error processing functions, which seem to be specific to run the AP in Linux.

In the entire book, APUE has such an include "apue. h" pre-processing statement ~

Source Code and related download see: http://www.linuxidc.com/Linux/2011-04/34662.htm

Then, some other. H files are included in the apue file ~ There are also some constants and function declarations (I don't know why)

Several error processing functions are defined in error. c.

Specifically, you need to run the code in APUE in Linux:

1. decompress the downloaded code to generate an apue.2e folder.

2. Copy the apue. h and error. c files to/usr/include.

3. Open apue. h and add include "error. c" at the end"

I solve this problem now. I compiled and ran several pieces of code in the book ~

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.