C++ echo server doesn't match API
raybellis opened this issue · 1 comments
raybellis commented
Compiling under Fedora 21, gets the following error and a few more like it:
g++ -I/home/ray/src/libuinet/bin/echo++/../../lib/libev -O -gdwarf-2 -I/home/ray/src/libuinet/bin/echo++/../../lib/libuinet/api_include -c -o echo++.o echo++.cc
echo++.cc: In constructor ‘EchoServer::EchoServer(ev::dynamic_loop&, server_config*)’:
echo++.cc:232:72: error: invalid conversion from ‘int’ to ‘uinet_instance_t {aka uinet_instance*}’ [-fpermissive
error = uinet_socreate(UINET_PF_INET, &listener_, UINET_SOCK_STREAM, 0);
luyuncheng commented
have you solved this problem? I met the same problem