Linker error when trying to include google-cloud-cpp-bigtable in my project. #15148
Unanswered
rick-droid
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I would recommend trying to get the Bigtable quickstart running as a first step. https://github.com/googleapis/google-cloud-cpp/tree/main/google/cloud/bigtable/quickstart Looking at your CMakeLists.txt, I would recommend you try changing the
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
System used: Debian-bullseye-slim
C++ version : 20
Compiler used: clang++19
I wanted to use the BigTable client library in my project, hence I did
vcpkg install google-cloud-cpp[core,bigtable]
This install went through.
google-cloud-cpp
is included invcpkg list
:I included it in my root CMakeLists.txt as follows:
In the subdirectory, I tried to link the library as follows:
target_link_libraries(MyService PRIVATE google_cloud_cpp_bigtable)
When I try to build my project, it can find the package but shows a linker error with lots of undefined references. This is part of the log:
What am I doing wrong and what can I do to resolve this?
Beta Was this translation helpful? Give feedback.
All reactions