Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue compiling #33

Open
abhi-jha opened this issue Feb 23, 2019 · 1 comment
Open

Issue compiling #33

abhi-jha opened this issue Feb 23, 2019 · 1 comment

Comments

@abhi-jha
Copy link

OS : Linux ubuntu 18.10
Compiled using : Cmake, clang
Boost version: 1.65.1

Errors:

/home/user/Desktop/GIT/temp/halley/src/plugins/asio/src/asio_tcp_connection.cpp: In constructor ‘Halley::AsioTCPConnection::AsioTCPConnection(boost::asio::io_service&, Halley::String, int)’:
/home/user/Desktop/GIT/temp/halley/src/plugins/asio/src/asio_tcp_connection.cpp:20:133: error: ‘boost::asio::ip::resolver<boost::asio::ip::tcp, boost::asio::ip::resolver_service<boost::asio::ip::tcp> >::results_type’ has not been declared
  resolver->async_resolve(host.cppStr(), toString(port).cppStr(), [=] (const boost::system::error_code& ec, asio::ip::tcp::resolver::results_type result)
                                                                                                                                     ^~~~~~~~~~~~
/home/user/Desktop/GIT/temp/halley/src/plugins/asio/src/asio_tcp_connection.cpp: In lambda function:
/home/user/Desktop/GIT/temp/halley/src/plugins/asio/src/asio_tcp_connection.cpp:25:18: error: ‘begin’ was not declared in this scope
    for (auto& r: result) {

/home/user/Desktop/GIT/temp/halley/src/plugins/asio/src/asio_tcp_connection.cpp:200:4:   required from here
/usr/include/boost/asio/detail/buffer_sequence_adapter.hpp:134:38: error: no type named ‘const_iterator’ in ‘class boost::asio::mutable_buffer’
     typename Buffers::const_iterator iter = buffer_sequence.begin();
                                      ^~~~
/usr/include/boost/asio/detail/buffer_sequence_adapter.hpp:135:38: error: no type named ‘const_iterator’ in ‘class boost::asio::mutable_buffer’
     typename Buffers::const_iterator end = buffer_sequence.end();
                                      ^~~
/usr/include/boost/asio/detail/buffer_sequence_adapter.hpp:134:38: error: no type named ‘const_iterator’ in ‘class boost::asio::mutable_buffer’
     typename Buffers::const_iterator iter = buffer_sequence.begin();
                                      ^~~~
/usr/include/boost/asio/detail/buffer_sequence_adapter.hpp:135:38: error: no type named ‘const_iterator’ in ‘class boost::asio::mutable_buffer’
     typename Buffers::const_iterator end = buffer_sequence.end();
                                      ^~~

/home/user/Desktop/GIT/temp/halley/src/plugins/asio/src/asio_tcp_connection.cpp:200:4:   required from here
/usr/include/boost/asio/detail/buffer_sequence_adapter.hpp:107:38: error: no type named ‘const_iterator’ in ‘class boost::asio::mutable_buffer’
     typename Buffers::const_iterator iter = buffer_sequence.begin();
                                      ^~~~
/usr/include/boost/asio/detail/buffer_sequence_adapter.hpp:108:38: error: no type named ‘const_iterator’ in ‘class boost::asio::mutable_buffer’
     typename Buffers::const_iterator end = buffer_sequence.end();
                                      ^~~
/usr/include/boost/asio/detail/buffer_sequence_adapter.hpp:107:38: error: no type named ‘const_iterator’ in ‘class boost::asio::mutable_buffer’
     typename Buffers::const_iterator iter = buffer_sequence.begin();
                                      ^~~~
/usr/include/boost/asio/detail/buffer_sequence_adapter.hpp:108:38: error: no type named ‘const_iterator’ in ‘class boost::asio::mutable_buffer’
     typename Buffers::const_iterator end = buffer_sequence.end();

@ghost
Copy link

ghost commented Feb 23, 2019

You need to use boost 1.66 or newer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant