Skip to content

Instantly share code, notes, and snippets.

@zealinux
Created October 7, 2017 06:07
Show Gist options
  • Save zealinux/45a9957f55c7cedcbe6e4a9c0c21db19 to your computer and use it in GitHub Desktop.
Save zealinux/45a9957f55c7cedcbe6e4a9c0c21db19 to your computer and use it in GitHub Desktop.
/usr/local/include/boost/network/uri/uri.hpp:310:19: error: expected expression
[&seed](boost::network::uri::uri::value_type v) {
^
/usr/local/include/boost/network/uri/builder.hpp:9:10: fatal error: 'asio/ip/address.hpp' file not found
#include <asio/ip/address.hpp>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
Manually copying $SRCDIR/deps/asio/asio/include/asio to $CMAKE_INSTALL_PREFIX/include/asio fixes the problem.
We don't recommend using cpp-netlib 0.12. I am going to prepare a release of 0.13 shortly which won't have the problem you describe.
/usr/local/include/boost/network/protocol/http/client/connection/async_normal.hpp:509:9: error: no type named 'deadline_timer' in namespace 'asio'
asio::deadline_timer timer_;
无解
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment