当前位置: 技术问答>linux和unix
编译的问题。
来源: 互联网 发布时间:2015-07-07
本文导语: ild: (undefined symbol) inet_addr -- referenced in the text segment of comm.o ild: (undefined symbol) inet_ntoa -- referenced in the text segment of info.o ild: (undefined symbol) gethostbyname -- referenced in the text segment of cftp. o ild: (undefi...
ild: (undefined symbol) inet_addr -- referenced in the text segment of comm.o
ild: (undefined symbol) inet_ntoa -- referenced in the text segment of info.o
ild: (undefined symbol) gethostbyname -- referenced in the text segment of cftp.
o
ild: (undefined symbol) gethostbyname -- referenced in the text segment of info.
o
找不到socket函数,估计是环境变量的设置,不知道要加什么,请大家帮忙指点一下。
ild: (undefined symbol) inet_ntoa -- referenced in the text segment of info.o
ild: (undefined symbol) gethostbyname -- referenced in the text segment of cftp.
o
ild: (undefined symbol) gethostbyname -- referenced in the text segment of info.
o
找不到socket函数,估计是环境变量的设置,不知道要加什么,请大家帮忙指点一下。
|
加上 -lsocket 看看。
|
呵呵,域名解析吧,刚在Windows下用过:)
找找看属于哪个LIB库的,编译的时候加到命令中。查属于哪个LIB库的,有个命令,不过我不记得了:(
找找看属于哪个LIB库的,编译的时候加到命令中。查属于哪个LIB库的,有个命令,不过我不记得了:(