APUE NOTE

一、书中代码的编译

1、README指出:To build the source, edit the Make.defines.* file for your system and set WKDIR to the pathname of the tree containing the source code.

        因此,需修改Make.defines.linux文件下的WKDIR;

2、Then just run "make".

3、将/include/apue.h拷贝到/usr/include/下;

4、gcc命令。如需要编译threadid.c的命令为:gcc threadid.c ../lib/error.c -o threadid -lpthread

你可能感兴趣的:(Unix)