The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
-- Setting gcc options
-- websocketpp not found, using the embedded version
-- Found Boost 1.70.0 at /opt/boost/lib/cmake/Boost-1.70.0
-- Requested configuration: QUIET REQUIRED COMPONENTS random;system;thread;filesystem;chrono;atomic;date_time;regex
-- Found boost_headers 1.70.0 at /opt/boost/lib/cmake/boost_headers-1.70.0
-- Found boost_random 1.70.0 at /opt/boost/lib/cmake/boost_random-1.70.0
-- libboost_random.so.1.70.0
-- Adding boost_random dependencies: system;headers
-- Found boost_system 1.70.0 at /opt/boost/lib/cmake/boost_system-1.70.0
-- libboost_system.so.1.70.0
-- Adding boost_system dependencies: headers
-- Found boost_thread 1.70.0 at /opt/boost/lib/cmake/boost_thread-1.70.0
-- libboost_thread.so.1.70.0
-- Adding boost_thread dependencies: headers
-- Found boost_filesystem 1.70.0 at /opt/boost/lib/cmake/boost_filesystem-1.70.0
-- libboost_filesystem.so.1.70.0
-- Adding boost_filesystem dependencies: headers
-- Found boost_chrono 1.70.0 at /opt/boost/lib/cmake/boost_chrono-1.70.0
-- libboost_chrono.so.1.70.0
-- Adding boost_chrono dependencies: headers
-- Found boost_atomic 1.70.0 at /opt/boost/lib/cmake/boost_atomic-1.70.0
-- libboost_atomic.so.1.70.0
-- Adding boost_atomic dependencies: headers
-- Found boost_date_time 1.70.0 at /opt/boost/lib/cmake/boost_date_time-1.70.0
-- libboost_date_time.so.1.70.0
-- Adding boost_date_time dependencies: headers
-- Found boost_regex 1.70.0 at /opt/boost/lib/cmake/boost_regex-1.70.0
-- libboost_regex.so.1.70.0
-- Adding boost_regex dependencies: headers
-- Found Boost: /opt/boost/lib/cmake/Boost-1.70.0/BoostConfig.cmake (found version "1.70.0") found components: random system thread filesystem chrono atomic date_time regex
-- Added test library httpclient_test
-- Added test library httplistener_test
-- Added test library json_test
-- Added test library pplx_test
-- Added test library streams_test
-- Added test library uri_test
-- Added test library utils_test
-- Added test library websocketsclient_test
-- Configuring done
-- Generating done
-- Build files have been written to: /workspace/repositoryserver/casablanca/Release/build.release
[root@5cent build.release]# make
Scanning dependencies of target cpprest
[ 1%] Building CXX object src/CMakeFiles/cpprest.dir/http/client/http_client.cpp.o
[ 1%] Building CXX object src/CMakeFiles/cpprest.dir/http/client/http_client_msg.cpp.o
[ 2%] Building CXX object src/CMakeFiles/cpprest.dir/http/common/http_compression.cpp.o
[ 3%] Building CXX object src/CMakeFiles/cpprest.dir/http/common/http_helpers.cpp.o
[ 3%] Building CXX object src/CMakeFiles/cpprest.dir/http/common/http_msg.cpp.o
[ 4%] Building CXX object src/CMakeFiles/cpprest.dir/http/listener/http_listener.cpp.o
[ 5%] Building CXX object src/CMakeFiles/cpprest.dir/http/listener/http_listener_msg.cpp.o
[ 5%] Building CXX object src/CMakeFiles/cpprest.dir/http/listener/http_server_api.cpp.o
[ 6%] Building CXX object src/CMakeFiles/cpprest.dir/http/oauth/oauth1.cpp.o
[ 6%] Building CXX object src/CMakeFiles/cpprest.dir/http/oauth/oauth2.cpp.o
[ 7%] Building CXX object src/CMakeFiles/cpprest.dir/json/json.cpp.o
[ 8%] Building CXX object src/CMakeFiles/cpprest.dir/json/json_parsing.cpp.o
[ 8%] Building CXX object src/CMakeFiles/cpprest.dir/json/json_serialization.cpp.o
[ 9%] Building CXX object src/CMakeFiles/cpprest.dir/uri/uri.cpp.o
[ 10%] Building CXX object src/CMakeFiles/cpprest.dir/uri/uri_builder.cpp.o
[ 10%] Building CXX object src/CMakeFiles/cpprest.dir/utilities/asyncrt_utils.cpp.o
[ 11%] Building CXX object src/CMakeFiles/cpprest.dir/utilities/base64.cpp.o
[ 11%] Building CXX object src/CMakeFiles/cpprest.dir/utilities/web_utilities.cpp.o
[ 12%] Building CXX object src/CMakeFiles/cpprest.dir/websockets/client/ws_msg.cpp.o
[ 13%] Building CXX object src/CMakeFiles/cpprest.dir/websockets/client/ws_client.cpp.o
[ 13%] Building CXX object src/CMakeFiles/cpprest.dir/websockets/client/ws_client_wspp.cpp.o
In file included from /opt/boost/include/boost/asio/executor.hpp:338:0,
from /opt/boost/include/boost/asio/basic_deadline_timer.hpp:31,
from /opt/boost/include/boost/asio/deadline_timer.hpp:24,
from /opt/boost/include/boost/asio/ssl/detail/stream_core.hpp:21,
from /opt/boost/include/boost/asio/ssl/detail/io.hpp:21,
from /opt/boost/include/boost/asio/ssl/stream.hpp:29,
from /opt/boost/include/boost/asio/ssl.hpp:22,
from /workspace/repositoryserver/casablanca/Release/include/cpprest/http_client.h:68,
from /workspace/repositoryserver/casablanca/Release/src/pch/stdafx.h:99,
from /workspace/repositoryserver/casablanca/Release/src/websockets/client/ws_client_wspp.cpp:14:
/opt/boost/include/boost/asio/impl/executor.hpp: In instantiation of ‘boost::asio::execution_context& boost::asio::executor::impl< , >::context() [with Executor = std::reference_wrapper; Allocator = std::allocator]’:
/workspace/repositoryserver/casablanca/Release/src/websockets/client/ws_client_wspp.cpp:844:1: required from here
/opt/boost/include/boost/asio/impl/executor.hpp:179:22: error: ‘class std::reference_wrapper’ has no member named ‘context’
return executor_.context();
/opt/boost/include/boost/asio/impl/executor.hpp: In instantiation of ‘void boost::asio::executor::impl< <template-parameter-1-1>, <template-parameter-1-2> >::on_work_started() [with Executor = std::reference_wrapper<boost::asio::io_context>; Allocator = std::allocator<void>]’:
/workspace/repositoryserver/casablanca/Release/src/websockets/client/ws_client_wspp.cpp:844:1: required from here
/opt/boost/include/boost/asio/impl/executor.hpp:169:15: error: ‘class std::reference_wrapper<boost::asio::io_context>’ has no member named ‘on_work_started’
executor_.on_work_started();
~~~~~~~~~~^~~~~~~~~~~~~~~
/opt/boost/include/boost/asio/impl/executor.hpp: In instantiation of ‘void boost::asio::executor::impl< <template-parameter-1-1>, <template-parameter-1-2> >::on_work_finished() [with Executor = std::reference_wrapper<boost::asio::io_context>; Allocator = std::allocator<void>]’:
/workspace/repositoryserver/casablanca/Release/src/websockets/client/ws_client_wspp.cpp:844:1: required from here
/opt/boost/include/boost/asio/impl/executor.hpp:174:15: error: ‘class std::reference_wrapper<boost::asio::io_context>’ has no member named ‘on_work_finished’
executor_.on_work_finished();
~~~~~~~~~~^~~~~~~~~~~~~~~~
/opt/boost/include/boost/asio/impl/executor.hpp: In instantiation of ‘void boost::asio::executor::impl< <template-parameter-1-1>, <template-parameter-1-2> >::dispatch(boost::asio::executor::function&&) [with Executor = std::reference_wrapper<boost::asio::io_context>; Allocator = std::allocator<void>]’:
/workspace/repositoryserver/casablanca/Release/src/websockets/client/ws_client_wspp.cpp:844:1: required from here
/opt/boost/include/boost/asio/impl/executor.hpp:184:15: error: ‘class std::reference_wrapper<boost::asio::io_context>’ has no member named ‘dispatch’
executor_.dispatch(BOOST_ASIO_MOVE_CAST(function)(f), allocator_);
~~~~~~~~~~^~~~~~~~
/opt/boost/include/boost/asio/impl/executor.hpp: In instantiation of ‘void boost::asio::executor::impl< <template-parameter-1-1>, <template-parameter-1-2> >::post(boost::asio::executor::function&&) [with Executor = std::reference_wrapper<boost::asio::io_context>; Allocator = std::allocator<void>]’:
/workspace/repositoryserver/casablanca/Release/src/websockets/client/ws_client_wspp.cpp:844:1: required from here
/opt/boost/include/boost/asio/impl/executor.hpp:189:15: error: ‘class std::reference_wrapper<boost::asio::io_context>’ has no member named ‘post’
executor_.post(BOOST_ASIO_MOVE_CAST(function)(f), allocator_);
~~~~~~~~~~^~~~
/opt/boost/include/boost/asio/impl/executor.hpp: In instantiation of ‘void boost::asio::executor::impl< <template-parameter-1-1>, <template-parameter-1-2> >::defer(boost::asio::executor::function&&) [with Executor = std::reference_wrapper<boost::asio::io_context>; Allocator = std::allocator<void>]’:
/workspace/repositoryserver/casablanca/Release/src/websockets/client/ws_client_wspp.cpp:844:1: required from here
/opt/boost/include/boost/asio/impl/executor.hpp:194:15: error: ‘class std::reference_wrapper<boost::asio::io_context>’ has no member named ‘defer’
executor_.defer(BOOST_ASIO_MOVE_CAST(function)(f), allocator_);
~~~~~~~~~~^~~~~
/opt/boost/include/boost/asio/impl/executor.hpp: In instantiation of ‘bool boost::asio::executor::impl< <template-parameter-1-1>, <template-parameter-1-2> >::equals(const boost::asio::executor::impl_base*) const [with Executor = std::reference_wrapper<boost::asio::io_context>; Allocator = std::allocator<void>]’:
/workspace/repositoryserver/casablanca/Release/src/websockets/client/ws_client_wspp.cpp:844:1: required from here
/opt/boost/include/boost/asio/impl/executor.hpp:218:22: error: no match for ‘operator==’ (operand types are ‘const std::reference_wrapper<boost::asio::io_context>’ and ‘const std::reference_wrapper<boost::asio::io_context>’)
return executor_ == *static_cast<const Executor*>(e->target());
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/boost/include/boost/bind/bind.hpp:29:0,
from /workspace/repositoryserver/casablanca/Release/src/pch/stdafx.h:60,
from /workspace/repositoryserver/casablanca/Release/src/websockets/client/ws_client_wspp.cpp:14:
-- Setting gcc options -- websocketpp not found, using the embedded version -- Found Boost 1.70.0 at /opt/boost/lib/cmake/Boost-1.70.0 -- Requested configuration: QUIET REQUIRED COMPONENTS random;system;thread;filesystem;chrono;atomic;date_time;regex -- Found boost_headers 1.70.0 at /opt/boost/lib/cmake/boost_headers-1.70.0 -- Found boost_random 1.70.0 at /opt/boost/lib/cmake/boost_random-1.70.0 -- libboost_random.so.1.70.0 -- Adding boost_random dependencies: system;headers -- Found boost_system 1.70.0 at /opt/boost/lib/cmake/boost_system-1.70.0 -- libboost_system.so.1.70.0 -- Adding boost_system dependencies: headers -- Found boost_thread 1.70.0 at /opt/boost/lib/cmake/boost_thread-1.70.0 -- libboost_thread.so.1.70.0 -- Adding boost_thread dependencies: headers -- Found boost_filesystem 1.70.0 at /opt/boost/lib/cmake/boost_filesystem-1.70.0 -- libboost_filesystem.so.1.70.0 -- Adding boost_filesystem dependencies: headers -- Found boost_chrono 1.70.0 at /opt/boost/lib/cmake/boost_chrono-1.70.0 -- libboost_chrono.so.1.70.0 -- Adding boost_chrono dependencies: headers -- Found boost_atomic 1.70.0 at /opt/boost/lib/cmake/boost_atomic-1.70.0 -- libboost_atomic.so.1.70.0 -- Adding boost_atomic dependencies: headers -- Found boost_date_time 1.70.0 at /opt/boost/lib/cmake/boost_date_time-1.70.0 -- libboost_date_time.so.1.70.0 -- Adding boost_date_time dependencies: headers -- Found boost_regex 1.70.0 at /opt/boost/lib/cmake/boost_regex-1.70.0 -- libboost_regex.so.1.70.0 -- Adding boost_regex dependencies: headers -- Found Boost: /opt/boost/lib/cmake/Boost-1.70.0/BoostConfig.cmake (found version "1.70.0") found components: random system thread filesystem chrono atomic date_time regex -- Added test library httpclient_test -- Added test library httplistener_test -- Added test library json_test -- Added test library pplx_test -- Added test library streams_test -- Added test library uri_test -- Added test library utils_test -- Added test library websocketsclient_test -- Configuring done -- Generating done -- Build files have been written to: /workspace/repositoryserver/casablanca/Release/build.release [root@5cent build.release]# make Scanning dependencies of target cpprest [ 1%] Building CXX object src/CMakeFiles/cpprest.dir/http/client/http_client.cpp.o [ 1%] Building CXX object src/CMakeFiles/cpprest.dir/http/client/http_client_msg.cpp.o [ 2%] Building CXX object src/CMakeFiles/cpprest.dir/http/common/http_compression.cpp.o [ 3%] Building CXX object src/CMakeFiles/cpprest.dir/http/common/http_helpers.cpp.o [ 3%] Building CXX object src/CMakeFiles/cpprest.dir/http/common/http_msg.cpp.o [ 4%] Building CXX object src/CMakeFiles/cpprest.dir/http/listener/http_listener.cpp.o [ 5%] Building CXX object src/CMakeFiles/cpprest.dir/http/listener/http_listener_msg.cpp.o [ 5%] Building CXX object src/CMakeFiles/cpprest.dir/http/listener/http_server_api.cpp.o [ 6%] Building CXX object src/CMakeFiles/cpprest.dir/http/oauth/oauth1.cpp.o [ 6%] Building CXX object src/CMakeFiles/cpprest.dir/http/oauth/oauth2.cpp.o [ 7%] Building CXX object src/CMakeFiles/cpprest.dir/json/json.cpp.o [ 8%] Building CXX object src/CMakeFiles/cpprest.dir/json/json_parsing.cpp.o [ 8%] Building CXX object src/CMakeFiles/cpprest.dir/json/json_serialization.cpp.o [ 9%] Building CXX object src/CMakeFiles/cpprest.dir/uri/uri.cpp.o [ 10%] Building CXX object src/CMakeFiles/cpprest.dir/uri/uri_builder.cpp.o [ 10%] Building CXX object src/CMakeFiles/cpprest.dir/utilities/asyncrt_utils.cpp.o [ 11%] Building CXX object src/CMakeFiles/cpprest.dir/utilities/base64.cpp.o [ 11%] Building CXX object src/CMakeFiles/cpprest.dir/utilities/web_utilities.cpp.o [ 12%] Building CXX object src/CMakeFiles/cpprest.dir/websockets/client/ws_msg.cpp.o [ 13%] Building CXX object src/CMakeFiles/cpprest.dir/websockets/client/ws_client.cpp.o [ 13%] Building CXX object src/CMakeFiles/cpprest.dir/websockets/client/ws_client_wspp.cpp.o In file included from /opt/boost/include/boost/asio/executor.hpp:338:0, from /opt/boost/include/boost/asio/basic_deadline_timer.hpp:31, from /opt/boost/include/boost/asio/deadline_timer.hpp:24, from /opt/boost/include/boost/asio/ssl/detail/stream_core.hpp:21, from /opt/boost/include/boost/asio/ssl/detail/io.hpp:21, from /opt/boost/include/boost/asio/ssl/stream.hpp:29, from /opt/boost/include/boost/asio/ssl.hpp:22, from /workspace/repositoryserver/casablanca/Release/include/cpprest/http_client.h:68, from /workspace/repositoryserver/casablanca/Release/src/pch/stdafx.h:99, from /workspace/repositoryserver/casablanca/Release/src/websockets/client/ws_client_wspp.cpp:14: /opt/boost/include/boost/asio/impl/executor.hpp: In instantiation of ‘boost::asio::execution_context& boost::asio::executor::impl<, >::context() [with Executor = std::reference_wrapper; Allocator = std::allocator]’:
/workspace/repositoryserver/casablanca/Release/src/websockets/client/ws_client_wspp.cpp:844:1: required from here
/opt/boost/include/boost/asio/impl/executor.hpp:179:22: error: ‘class std::reference_wrapper’ has no member named ‘context’
return executor_.context();