You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN apt-get -y install zlib1g-dev g++ cmake doxygen graphviz libboost-all-dev libssl-dev
WORKDIR /source
RUN git clone https://github.com/jgaa/restc-cpp.git
WORKDIR /source/restc-cpp/dbuild
RUN cmake ..
RUN make
which leaves the includes under /source/restc-cpp/include.
My source file is:
#include <restc-cpp/restc-cpp.h>
int main(int argc, char *argv[])
{
auto rest_client = restc_cpp::RestClient::Create();
}
I set my include search path in my CMakelist.txt file with:
include_directories(MyProject PRIVATE /source/restc-cpp/include)
But when I compile, I get the error: cannot find "rest-cpp/config.h" needed by <restc-cpp/restc-cpp.h>
Well I found it in restc-cpp/dbuild/generated-include/restc-cpp/config.h
So I copied it (and export.h) into /source/restc-cpp/include/restc-cpp/
And now it compiles but I get a link error: undefined reference to `OPENSSL_init_ssl'
You can also make and make install, to copy the headers and libraries into /usr/local/...
If you want me to take a look at your current problem, can you create a public repository with it>? Than I can take a look and provide a PR if I find a simple solution.
I am building in a Debian docker container.
I build with:
which leaves the includes under /source/restc-cpp/include.
My source file is:
I set my include search path in my CMakelist.txt file with:
include_directories(MyProject PRIVATE /source/restc-cpp/include)
But when I compile, I get the error: cannot find "rest-cpp/config.h" needed by <restc-cpp/restc-cpp.h>
Well I found it in restc-cpp/dbuild/generated-include/restc-cpp/config.h
So I copied it (and export.h) into /source/restc-cpp/include/restc-cpp/
And now it compiles but I get a link error: undefined reference to `OPENSSL_init_ssl'
My CMakelist.txt file is:
I believe the crypto library should supply this reference, so I don't see what I am doing wrong
The text was updated successfully, but these errors were encountered: