Я вот до нынешнего времени писал на С под *nix. Вот попробовал скомпилить программу свою в c++, так вот что получил :
[sanya]@[beer]:~/livesocks3> c++ temp.cpp
temp.cpp: In function `int main(int, char**)':
temp.cpp:116: error: `inet_addr' undeclared (first use this function)
temp.cpp:116: error: (Each undeclared identifier is reported only once for each
function it appears in.)
temp.cpp: In function `void run()':
temp.cpp:205: error: `fork' undeclared (first use this function)
temp.cpp: In function `void testSocks(int)':
temp.cpp:270: error: `inet_addr' undeclared (first use this function)
temp.cpp:281: error: `close' undeclared (first use this function)
temp.cpp: In function `int checkRBL(char*)':
temp.cpp:330: error: `gethostbyname' undeclared (first use this function)
Press any key to continue...
В чем проблема ?
Почему сокетовские функции не видно ?