当前位置: 技术问答>linux和unix
linux 下使用socket, link时候一堆undefined reference
来源: 互联网 发布时间:2016-03-06
本文导语: linux 下用甚么library 来实现的这几个header啊 sys/socket.h netinet/in.h netdb.h arpa/inet.h 出错一堆: undefined reference to 'close(int)' undefined reference to 'connect..' undefined reference to 'gethostbyname...' 用的fedora 8 从其他地方找来几...
linux 下用甚么library 来实现的这几个header啊
sys/socket.h
netinet/in.h
netdb.h
arpa/inet.h
出错一堆:
undefined reference to 'close(int)'
undefined reference to 'connect..'
undefined reference to 'gethostbyname...'
用的fedora 8
从其他地方找来几个库,放进去没反映
libws2_32.a
socket.so
libwsock32.a
救我!!
sys/socket.h
netinet/in.h
netdb.h
arpa/inet.h
出错一堆:
undefined reference to 'close(int)'
undefined reference to 'connect..'
undefined reference to 'gethostbyname...'
用的fedora 8
从其他地方找来几个库,放进去没反映
libws2_32.a
socket.so
libwsock32.a
救我!!
|
glibc