Advanced Programming for UNIX environments-"apue.h" configuration

Source: Internet
Author: User

The book is not much to say, is called UNIX under the C programming Bible; But now it seems that some people in the country like to recommend books to others, I am very skeptical that some people are not recommended each have seen. I do not recommend this for the time being, because I have not read it.
Almost all of the code in this book is used by the author to program a header file: apue.h But this is not the ISO C comes with, so need to configure.

I use this book is the third edition, Third edition, the third edition of important things say three times 1: first go to the book's official website to download the source code, Portal 2: Decompression 3:make

In fact, after the decompression you will find that the directory below a readme file, open:

thefile"gmake""make" (aslongasandthehttpandto2013

The author has told you what to do.

4: Copy two files

These two files are: apue.h error.c Two files are located (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 C-language default working directory (take my Computer as an example)

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

The final effect is as follows:

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

Above

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Advanced Programming for UNIX environments-"apue.h" configuration

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.