What should I do with the files ename.c.inc
, error_functions.c
, error_functions.h
, tlpi_hdr.h
?
I copied these files into /lib/ Directory. but I got the following Error when I tried to compile example listing 4.1, a simple copy function:
4.1_copy.c:(.text+0x7e): undefined reference to `usageErr'
4.1_copy.c:(.text+0xcd): undefined reference to `errExit'
4.1_copy.c:(.text+0x139): undefined reference to `errExit'
4.1_copy.c:(.text+0x16f): undefined reference to `fatal'
4.1_copy.c:(.text+0x1b6): undefined reference to `errExit'
4.1_copy.c:(.text+0x1d7): undefined reference to `errExit'
4.1_copy.c:(.text+0x1f8): undefined reference to `errExit'
collect2: ld returned 1 exit status
What do I need to do to get this program to link?