The -lsocket part of the compile line means "link against libsocket".
-l<insert anything here> means "link against lib<insert same thing here>"
In order for this to work lib<blah> must be in your lib path defined by ld.so.conf (usually in /etc).
EDIT: There is no special socket library you need to link against to use sockets in linux. So you can probably remove that part anyway.
BTW.. moved to Programming because I feel it makes a little more sense there...
Last edited by jtshaw; 08-05-2005 at 06:18 AM.
|