On Mon, May 26, 2008 at 8:11 AM, deoxy <[EMAIL PROTECTED]> wrote: > Hello. > > I dont know if this a cuestion for this list, but I think is it a valid > cuestion... > I reading a book recomended in http://www.openbsd.org/books.html The book is > "Advanced programmig in the unix environment". > In this book I read Figure 3.1 but this not compile. the error is: > > $cc F3_10.c > /tmp//ccnsuA79.o(.text+027): In function 'main': > :undefined reference to 'err_quit' > /tmp//ccnsuA79.o(.text+0x74): In fuction 'main': > :undefined reference to 'err_sys' > /tmp//ccnsuA79.o(.txt+0xdf): In functiion 'main': > :undefined reference to 'err_dump' > collect2: ld returned 1 exit status > > The source is: > > > #include "apue.h"
This is the clue - where do you think is apue.h? Take a look at the last few pages of the book, and you will see. -Amarendra