|
有这么函数的吗?怎么这么奇怪??
请看:
FREE# cat in_to_out.c
#include <ourhdr.h>
#define BUFFSIZE 8192
int
main(void)
{
int n;
char buf[BUFFSIZE];
while((n=read(STDIN_FILENO,buf,BUFFSIZE)) >0)
if (write(STDOUT_FILENO,buf,n) != n)
err_sys("write error\n");
if (n<0)
err_sys("read error\n");
exit(0);
}
FREE# gcc in_to_out.c
/tmp/ccWwMtt2.o: In function `main':
/tmp/ccWwMtt2.o(.text+0x5c): undefined reference to `err_sys'
/tmp/ccWwMtt2.o(.text+0x77): undefined reference to `err_sys'
FREE#
怎么办?找个头文件还是。。。。。 |
|