Closed dheeraj12190 closed 5 years ago
I have not tested restc_cpp on redhat.
What compiler version and boost library versions are you using?
compiler version is 6.3 and boost version is 1.69.
I have also used GCC version 7.3 and Boost_version 1.61 but still facing the same issue
./include/restc-cpp/include/restc-cpp/RequestBuilder.h:371: undefined reference to `restc_cpp::Request::Create(std::string const&, restc_cpp::Request::Type, restc_cpp::RestClient&, std::unique_ptr<restc_cpp::RequestBody, std::default_delete
I will check it out later this week.
I have tested with centos, and all the tests link and run. I used devtoolset-7-gcc and boost 1.69.0. Does the tests link on your system?
From the linker-message, it seems like you don't link the library to your project. Can you provide the full link command with all parameters?
Now I am able to link on redhat 7. Issue was cmake was not linking with libdl.
Hello Sir, I am using your library in my project. I am able to use it on ubuntu. I have successfully compiled your library on redhat7. but when I am linking to my project I am getting following error
restc-cpp.h:368: undefined reference to `restc_cpp::Context::Create(boost::asio::basic_yield_context<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, void (*)(), boost::asio::detail::is_continuation_if_running> >&, restc_cpp::RestClient&)'
Need your help to resolve the problem Thank You