Compiling for IP

Hi,

I am trying to compile a simple application that will be started by inetd.

My problem if very simple. The code uses recv() and send(). When I compile

it, I get the message that recv and send were not found. The documentation
states

that I need “libsocket” to use recv() or send(), so I should link the
application with another library.

How do I do that ? I tried the -l option but it did not work!


Thanks, Jack.

“Jacques Gagné” <gagneja@collegesherbrooke.qc.ca> wrote in message
news:a756i0$304$1@inn.qnx.com

Hi,

I am trying to compile a simple application that will be started by inetd.

My problem if very simple. The code uses recv() and send(). When I compile

it, I get the message that recv and send were not found. The documentation
states

that I need “libsocket” to use recv() or send(), so I should link the
application with another library.

How do I do that ? I tried the -l option but it did not work!

Add -lsocket to the link phase.

Thanks, Jack.

Thanks, I knew it had to be that simple

Jacques Gagné

“Mario Charest” <goto@nothingness.com> a écrit dans le message de news:
a75cdp$6ns$1@inn.qnx.com

“Jacques Gagné” <> gagneja@collegesherbrooke.qc.ca> > wrote in message
news:a756i0$304$> 1@inn.qnx.com> …
Hi,

I am trying to compile a simple application that will be started by
inetd.

My problem if very simple. The code uses recv() and send(). When I
compile

it, I get the message that recv and send were not found. The
documentation
states

that I need “libsocket” to use recv() or send(), so I should link the
application with another library.

How do I do that ? I tried the -l option but it did not work!


Add -lsocket to the link phase.


Thanks, Jack.
\