Reputation: 2811
I'm trying to use Cloud Storage C++ Client Library
I've installed it following instructions
When I try to compile it using g++, compilation/linking failing with the following error:
undefined reference to 'google::cloud::storage::v0::Client::CreateDefaultClient()'
Where can I find compiling/building instructions for cpp google cloud SDK.
Upvotes: 1
Views: 937
Reputation: 2811
I had to compile it with these flags $(pkg-config --cflags storage_client libcurl openssl google_cloud_cpp_common libcares)
and link it with these flags $(pkg-config --libs storage_client libcurl openssl google_cloud_cpp_common libcares) -lcrc32c
For some reason default installation of crc32c was not fine, so I had to clone git repository and follow installation instruction there to fix it.
Upvotes: 0