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