tcp example

View: New views
1 Messages — Rating Filter:   Alert me  

tcp example

by Lucas Galete :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
  does anyone know why this [1] example don't compile ?
I've tried on Ubuntu 8.04 and Mac Os X. Seens there's a problem with  
tcpstream class.

Sory for asking in the wrong place, but I couldn't find help anywhere.

thanks in advance.


[1] http://www.gnu.org/software/commoncpp/docs/refman/html/tcpstr1_8cpp-example.html

---

$ g++ main.cpp -lgnucpp2 -I /opt/local/include/ -L /opt/local/lib
main.cpp: In member function ‘virtual void ThreadOut::run()’:
main.cpp:20: error: ‘tcpstream’ was not declared in this scope
main.cpp:20: error: expected `;' before ‘tcp’
main.cpp:21: error: ‘tcp’ was not declared in this scope
main.cpp: In function ‘int main(int, char**)’:
main.cpp:36: error: ‘tcpstream’ was not declared in this scope
main.cpp:36: error: expected `;' before ‘tcp’
main.cpp:37: error: ‘tcp’ was not declared in this scope




_______________________________________________
Bug-commoncpp mailing list
Bug-commoncpp@...
http://lists.gnu.org/mailman/listinfo/bug-commoncpp