我需要在 Mac OS X 上进行一些套接字编程,但我缺少它的库?这是我编译时发生的情况:
gcc ser.c -o ser -lsocket -lnsl
ser.c: In function ‘main’:
ser.c:41: warning: format ‘%.24s’ expects type ‘char *’, but argument 6 has type ‘int’
ld: library not found for -lsocket
collect2: ld returned 1 exit status
我如何获得这个库?