[问题]about -lsocket libsocket.a libsocket.so

软件和网站开发以及相关技术探讨
回复
jsjcnzf
帖子: 2
注册时间: 2007-03-20 16:52

[问题]about -lsocket libsocket.a libsocket.so

#1

帖子 jsjcnzf » 2007-03-20 17:36

sorry, i cann't type chinese.....my bad english-_-;

when i use g++... -lsocket -lnsl

that said,cann't find lsocket
and return 1

oh,my god,i am confused

1.in the path /lib ,i can not find libsocket.a or libsocket.so
2,also in the path /usr/lib,i can not find the two files what i mention above

so,what should i do? who can help me?
my assignment,oh,god bless me!!!

give me help, thx.
kf701
帖子: 24
注册时间: 2007-03-20 9:33
联系:

#2

帖子 kf701 » 2007-03-21 10:22

什么程序要 -lsocket ?
头像
titainium
帖子: 689
注册时间: 2006-12-02 12:25

#3

帖子 titainium » 2007-03-21 11:48

tcp/ip相关的吧?太高深了,偶还在写“Hello World” :em19
Titainium
头像
titainium
帖子: 689
注册时间: 2006-12-02 12:25

#4

帖子 titainium » 2007-03-21 11:49

不过看起来应该是没有装相应的库和头文件,用新立得找一找吧。
Titainium
kf701
帖子: 24
注册时间: 2007-03-20 9:33
联系:

#5

帖子 kf701 » 2007-03-21 12:51

titainium 写了:tcp/ip相关的吧?太高深了,偶还在写“Hello World” :em19
没见过 tcp/ip 应用程序要 -lsocket 的。
回复