DavidKeller / kademlia

Dead simple C++11 kademlia distributed hash table library
http://dev.litchis.fr/projects/kademlia
70 stars 17 forks source link

error during make: ‘io_service’ is not a member of ‘boost::asio’ #5

Closed Red-Night-Aria closed 6 years ago

Red-Night-Aria commented 6 years ago
[ 53%] Building CXX object test/unit_tests/CMakeFiles/test_helpers.dir/network.cpp.o
In file included from /home/redim/code/kademlia/test/unit_tests/network.cpp:26:0:
/home/redim/code/kademlia/test/unit_tests/network.hpp: In function ‘boost::system::error_code 
kademlia::test::create_socket(const string&, uint16_t)’:
/home/redim/code/kademlia/test/unit_tests/network.hpp:46:18: error: ‘io_service’ is not a member of ‘boost::asio’
 boost::asio::io_service io_service;
                  ^~~~~~~~~~

it seems that #include<boost/asio.hpp> is missing from network.hpp

DavidKeller commented 6 years ago

Thank you.