Hello,
I actually try to make client-server program.
I'm using SCO OpenServer Release 5.0.0 and when I try to compile my code (by TELNET) I've got this error :
I'm just using this simple code :
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <stdio.h>
#define ADDRESS "192.168.0.191"
char *strs[3] = {"Message test - Socket"};
main()
{
char c;
FILE *fp;
int fromlen;
register int i, s, ns, len;
struct sockaddr_un saun, fsaun;
if ((s = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
{
perror("server: socket");
exit(1);
}
exit(0);
}
and I get the same error if I use :
If someone can help me,
Thanks
I'm sorry....
I just search a bit more on the forum and I find something...
cc test.c -lsocket
and It works...:rolleyes:
Perhaps....I will need to send mail, send SMS, reboot computer (so using shell command), so I guess I will need a lot of librairies!
So thank you!!!