Quote Originally Posted by Salem View Post
> g++ -lsocket dummyServer.cpp
Order matters
g++ dummyServer.cpp -lsocket
I got the same old error.

#g++ dummyServer.cpp -lsocket
Undefined first referenced
symbol in file
inet_aton /var/tmp//ccwzWCDb.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status

My guess is that i have to link some other lib too. :-(