Advanced Programming in Unix environment-& quot; apue. h & quot; Configuration

Source: Internet
Author: User

Advanced Programming in Unix environment-"apue. h" configuration

The book is not much said. It is called the Bible for C Programming in Unix. However, it seems that some people in China like to recommend books to others now. I doubt if some people have read every book recommended. I am not recommended for the moment, because I have not finished reading it.
Almost all the code in this book uses the author's programming header file: apue. h, but this is not the built-in iso c, so you need to configure it.

The book I used is the third, the third, and the third. The important things of the third are described three times. 1. Go to the official website of the book and download the source code. 2: extract the package 3: make.

In fact, after decompression, you will find that the directory contains a README file to open:

Read the file called DISCLAIMER.On Freebsd, type "gmake".On other platforms, type "make" (as long as this is gnu make).For FAQs, updated source code, and the lost chapter, see http://www.apuebook.com.Please direct questions, suggestions, and bug reports to sar@apuebook.com.Steve RagoJanuary 2013

The author has already told you how to do it.

4: Copy two files

These two files are: apue. h error. c files are located separately (take my computer as an example)

/home/mark/Downloads/apu.3e/include /* apue.h *//home/mark/Downloads/apu.3e/lib /* error.c */

Copy them to the default working directory of C language (take my computer as an example)

cp ./include/apue.h ./lib/error.c /usr/include
5: add a line of code before the last line of the apue. h header file:
#include "erro.c"

The final effect is as follows:

#include "error.c"#endif /* _APUE_H */

Above

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.