Compiling with libsocket

I am trying to compile an aplication that uses socket and sendto functions. What is the compile option (for qcc) to include this? It is -l?
Where can I find all diferents options to include libraries?
Thanks a lot.

qcc -o myappl myappl.c -lsocket

Thanks a lot