Hi,
I am trying to run simple client server c program in unix.At the compling stage server is creating an executable but the client is not.
below is the link to the source codes:
http://www.cs.rpi.edu/courses/sysprog/sockets/server.c
http://www.cs.rpi.edu/courses/sysprog/sockets/client.c
I am getting following message
client.c: In function `main':
client.c:39: warning: passing arg 2 of `connect' from incompatible pointer type
client.c:53:2: warning: no newline at end of file
Undefined first referenced
symbol in file
gethostbyname /var/tmp//ccgXDT5X.o (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to ss1
collect2: ld returned 1 exit status
Can any one solve this?