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

Build centos error boost #468

Open
kimnamcham opened this issue Dec 22, 2020 · 0 comments
Open

Build centos error boost #468

kimnamcham opened this issue Dec 22, 2020 · 0 comments

Comments

@kimnamcham
Copy link

When i run build_linux.sh, it's error when build boost:

/data/NPLRuntime/Client/trunk/ParaEngineClient/NPL/NPLConnection.cpp: In member function ‘void NPL::CNPLConnection::connect()’:
/data/NPLRuntime/Client/trunk/ParaEngineClient/NPL/NPLConnection.cpp:591:78: error: no matching function for call to ‘boost::asio::ip::basic_resolver
boost::asio::ip::tcp::basic_resolver(boost::asio::basic_socketboost::asio::ip::tcp::executor_type)’
m_resolver.reset(new boost::asio::ip::tcp::resolver(m_socket.get_executor()));
^
/data/NPLRuntime/Client/trunk/ParaEngineClient/NPL/NPLConnection.cpp:591:78: note: candidates are:
In file included from /usr/local/include/boost/asio.hpp:80:0,
from /data/NPLRuntime/Client/trunk/ParaEngineClient/NPL/NPLMsgOut.h:8,
from /data/NPLRuntime/Client/trunk/ParaEngineClient/NPL/NPLConnection.h:5,
from /data/NPLRuntime/Client/trunk/ParaEngineClient/NPL/NPLDispatcher.h:9,
from /data/NPLRuntime/Client/trunk/ParaEngineClient/NPL/NPLConnection.cpp:11:
/usr/local/include/boost/asio/ip/basic_resolver.hpp:116:3: note: boost::asio::ip::basic_resolver::basic_resolver(boost::asio::ip::basic_resolver&&) [with InternetProtocol = boost::asio::ip::tcp]
basic_resolver(basic_resolver&& other)
^
/usr/local/include/boost/asio/ip/basic_resolver.hpp:116:3: note: no known conversion for argument 1 from ‘boost::asio::basic_socketboost::asio::ip::tcp::executor_type {aka boost::asio::io_context::executor_type}’ to ‘boost::asio::ip::basic_resolverboost::asio::ip::tcp&&’
/usr/local/include/boost/asio/ip/basic_resolver.hpp:100:12: note: boost::asio::ip::basic_resolver::basic_resolver(boost::asio::io_context&) [with InternetProtocol = boost::asio::ip::tcp]
explicit basic_resolver(boost::asio::io_context& io_context)
^
/usr/local/include/boost/asio/ip/basic_resolver.hpp:100:12: note: no known conversion for argument 1 from ‘boost::asio::basic_socketboost::asio::ip::tcp::executor_type {aka boost::asio::io_context::executor_type}’ to ‘boost::asio::io_context&’
make[2]: *** [ParaEngineServer/CMakeFiles/ParaEngineServer.dir/data/NPLRuntime/Client/trunk/ParaEngineClient/NPL/NPLConnection.cpp.o] Error 1
make[1]: *** [ParaEngineServer/CMakeFiles/ParaEngineServer.dir/all] Error 2
make: *** [all] Error 2
/data/NPLRuntime

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