Compiling Code From Apue
Answer : A short review of how to write and compile the programs in Advanced Programming in the UNIX® Environment, thanks to slm for helping me understand the steps. You can download the source code from here. I wish this information was included as part of appendix b of the book, where the header file is explained. The uncompressed file contains directories with the names of the chapters and two others named include and lib . The ones with the names of the chapters have all the programs of that chapter in them. The include directory contains the header file that is used in most of the programs in the book: apue.h . The lib directory has the source code of the implementations for the that header. Lets assume the uncompressed file is located at: SCADDRESS/ , for example it might be: /home/yourid/Downloads/apue.3e/ Once you uncompress the source code, go in the directory and run make : $ cd SCADDRESS $ make make will compile all the programs in all the chapters. But the important...