Hello folks,<br>My problem is when I try and create a socket I get error undefined symbol socket.<br>I am sure the include files are correct.... (Unix platform)<br>What could be wrong ?<br><br><br><br><br>#include <sys/types.h><br>#include <sys/socket.h><br><br>main()<br>{ int s;<br><br> /* get a socket */<br> s = socket(AF_UNIX, SOCK_STREAM, 0);<br> close(s);<br> exit(0);<br>}<br><br>Undefined first referenced<br> symbol in file<br>socket /var/tmp/cc0MHiNS1.o<br>ld: fatal: Symbol referencing errors. No output written to a.out<br>