1

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.

Takashi Matsuo
  • 3,406
  • 16
  • 25
Chakradar Raju
  • 2,691
  • 2
  • 26
  • 42

1 Answers1

0

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.

Chakradar Raju
  • 2,691
  • 2
  • 26
  • 42