Help requested in using gcc 2.95

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi 
I have written only these 2 lines of code
When I try to compile the program It gives the error as described

Can you pleease help me

Thankx in advance
Gaurav


#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <unistd.h> 
#define SERVER_PORT 54203
#define SERVER_NAME cs.babbage.iit.edu

int main(int argc,char *argv[])
{
  int s;
  s= socket(AF_INET,SOCK_STREAM,0);
  
 return 0;

}
bash-2.03$ gcc -o Client ClientSocket.c
Undefined                       first referenced
 symbol                             in file
socket                              /var/tmp/ccipJJFU.o
ld: fatal: Symbol referencing errors. No output written to Client


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux