unix下,socket编译出错
小弟在unix下使用UDP发送数据,程序编译时出现以下错误,是不是头文件的问题???
type
Undefined first referenced
symbol in file
diep /tmp/cczfkcVf.o
sendto /tmp/cczfkcVf.o
socket /tmp/cczfkcVf.o
inet_aton /tmp/cczfkcVf.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
谢谢各位