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
I'm trying to build a standalone c++ client, which should link and make use of librequest.so.
For this, I would like to use the tar file provided in the client docker, e.g. v1.5.0dev.clients.tar.gz
In my main I include #include "request_grpc.h", which is correctly found. But in this "public" library header, I get the following error now:
In file included from /path/to/main.cpp:32:0:
/path/to/request_grpc.h:30:10: fatal error: src/clients/c++/request.h: No such file or directory
#include "src/clients/c++/request.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Which makes sense, as those "public" library headers try to include from the path "src/clients/c++/", which of course does not exist in this context.
So how can I use the library headers? Or in more general terms: how would I install and use this library from e.g. /usr/lib and /usr/include?
The text was updated successfully, but these errors were encountered:
Yes, that is a bug. We should either fix those includes to expect a "flat" include directly like we have, or place them within the same include hierarchy as what they expect. Until we fix you should be able to work-around by re-arranging the includes into the locations they expect.
I'm trying to build a standalone c++ client, which should link and make use of librequest.so.
For this, I would like to use the tar file provided in the client docker, e.g.
v1.5.0dev.clients.tar.gz
The content looks like this:
So in my CMakeLists.txt I link and include the library like this:
In my main I include
#include "request_grpc.h"
, which is correctly found. But in this "public" library header, I get the following error now:In file included from /path/to/main.cpp:32:0: /path/to/request_grpc.h:30:10: fatal error: src/clients/c++/request.h: No such file or directory #include "src/clients/c++/request.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
Which makes sense, as those "public" library headers try to include from the path "src/clients/c++/", which of course does not exist in this context.
So how can I use the library headers? Or in more general terms: how would I install and use this library from e.g. /usr/lib and /usr/include?
The text was updated successfully, but these errors were encountered: