undefined reference to restc_cpp::RestClient::Create()
Hi, First of all, many thanks for your effort and work developing this library. I am trying to run one of example in a Linux Ubuntu environment but I am getting the error above while compiling. I have read many articles / google / examples but I couldn't figure out what I am doing wrong.
Environment: Visual Studio + WSL Ubuntu Visual Studio configured to C++14. int main() { auto rest_client = RestClient::Create();
// Call DoSomethingInteresting as a co-routine in a worker-thread.
rest_client->Process(DoSomethingInteresting);
// Wait for the coroutine to finish, then close the client.
rest_client->CloseWhenReady(true);
return 0;
}
I have no experience with WSL. The project compiles with gcc and clang under Ubuntu, and visual studio for Windows.
just did a git clone of the lib, cmake install to usr/local and tried first example from https://github.com/jgaa/restc-cpp/blob/master/doc/Tutorial.md
I can second that
auto rest_client = restc_cpp::RestClient::Create();
gives me
undefined reference to restc_cpp::RestClient::Create()'
/usr/local/include/restc-cpp/RequestBuilder.h:371: undefined reference to `restc_cpp::Request::Create(std::__cxx11::basic_string<char, std::char_traits
`