Transferred from: http://www.xitongbuluo.com/jiaocheng/17264.html
Download apue.h file in http://download.csdn.net/detail/lincoln_2012/7680675
/************************************************************************************************************** /
The apue.h file is a file that is written in the book and contains the usual header files that the system does not own. This includes the usual header files, and the definition of the error handling function, which is very convenient to use. However, in actual use does not have this file to do? What to do?
1. Download to the book the corresponding apue.h and error.c two files on the Internet;
2. Switch to the root user (the normal user does not have enough permission to copy files to/usr directory);
3. Modify the Apue.h file we need to save the file in the Apue.h file #endif/* _apue_h * * Before adding # include "ERROR.C"!
4. Copy the two files to the/usr/include directory;
In accordance with the inside can't fight or met a small dozen problems, compile the error prompt said error.c maxline No definition, I in error.c inside define
#define MAXLINE 2048
You can go through the compilation of files with GCC.
Troubleshooting UNIX Environment Advanced becomes apue.h problem not found