The first example will show
Other_name.c: In function 'opendir _ file ':
Other_name.c: 21: 2: Warning: incompatible implicit declaration of built-in function 'delete' [enabled by default]
/Tmp/cc2qjgmx. O: In function 'opendir _ file ':
Other_name.c :(. Text + 0x14): Undefined reference to 'err _ quit'
Other_name.c :(. Text + 0x3b): Undefined reference to 'err _ sys'
Collect2: LD returned 1 exit status
This is because you need to download the source code that comes with the book and compile the required library file, steps here can refer to blog http://blog.csdn.net/davidyuxuan/article/details/8820927
The following error may occur when compiling the make source code:
/Usr/include/i386-linux-gnu/bits/Timex. h: 31: 7: Error: Expected ':', '}' or '_ attribute _ 'before '. 'tokenmake [2]: *** [printd. o] Error 1 make [2]: leaving the directory '/tmp/apue.2e/ipp' make [1]: *** [Linux] Error 1 make [1]: leaving directory '/tmp/apue.2e'
Make: *** [all] Error 2
Here you can refer to the http://blog.163.com/fishing_1/blog/static/41594482013335953444/ can be solved smoothly