还是不行啊 报错
cc -Wall -O2 -lptrhead.a mutilprocessserver.c sendReceive.o -o mutilprocessserver
mutilprocessserver.c: In function ‘main’:
mutilprocessserver.c:89: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness
/usr/include/sys/socket.h:214: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’
mutilprocessserver.c:35: warning: unused variable ‘pid’
mutilprocessserver.c: In function ‘noBlocInput’:
mutilprocessserver.c:212: warning: ignoring return value of ‘gets’, declared with attribute warn_unused_result
In file included from /usr/include/stdio.h:910,
from sendReceive.h:1,
from mutilprocessserver.c:10:
In function ‘gets’,
inlined from ‘noBlocInput’ at mutilprocessserver.c:212:
/usr/include/bits/stdio2.h:230: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size
/usr/bin/ld: cannot find -lptrhead.a
collect2: ld returned 1 exit status
make: *** [mutilprocessserver] 错误 1