Use this tag if you are going to refer something from C++ libraries of Google Cloud Platform.
Questions tagged [google-cloud-cpp]
14 questions
3
votes
3 answers
C/C++ library for Google Cloud Storage
Do you know good C/C++ library for Google Cloud Storage?
I can find Python library for it, but I can't find with C/C++ (or Objective-C).

Wonil
- 6,364
- 2
- 37
- 55
1
vote
0 answers
Unable to cross compile google-cloud-cpp using x86_64-w64-mingw32-g++
I'm unable to cross-compile google-cloud-cpp using x86_64-w64-mingw32-g++. It seems to me that there's a bug in some protos files.
Environment
Ubuntu 20.04 LTS
Steps
install mingw-w64
clone google-cloud-cpp with v2.14.0 tag
run
cmake…

user3079777
- 83
- 2
- 11
1
vote
1 answer
How do I compile C++ code including Google Cloud Storage library?
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…

Chakradar Raju
- 2,691
- 2
- 26
- 42
1
vote
1 answer
json.exception.parse_error when calling google::cloud::storage::Client
https://github.com/GoogleCloudPlatform/google-cloud-cpp/
https://github.com/GoogleCloudPlatform/google-cloud-cpp/blob/master/google/cloud/storage/examples/storage_quickstart.cc
after building all available libraries, run…

yutseho
- 1,639
- 1
- 15
- 27
1
vote
1 answer
google-cloud-cpp CMake Generation Failed
I'm trying to build google-cloud-cpp, but I get an error (see below). I have attempted building it using both VC++ and g++, but I get the same error during with both. I use cmake-gui.
Build Environment : Visual Studios 2017
OS : Windows 10 Pro…

Dark Sorrow
- 1,681
- 14
- 37
0
votes
1 answer
Is there a way to upload files from FTP to GCS using Google Cloud Client Library?
I am new to GCP and its client libraries. I am unable to upload files into google cloud storage bucket from FTP server using C++ Google cloud client library. When I tried to run the file "storage_object_file_transfer_samples.cc"(which is provided in…

GCP Learner
- 1
- 1
0
votes
1 answer
GCP C++ SDK - Setting HTTP proxy and disabling SSL certificate verification
How can we set HTTP proxy for GCP C++ SDK?
Setting env variables using the "http_proxy" does not seem to have an effect.
Setting the SSL_CERT_FILE env variable also does not affect the SSL certificate path. CURL always seems to be using the default…

Adhitya
- 1
0
votes
1 answer
Retry Policies are not getting forwarded to google client
I'm using google-cloud-cpp SDK from here and I'm trying to test for an incorrect endpoint scenario where I'm expecting an error within 100 milliseconds as per the policy I setup when I pass in an incorrect endpoint url. However, my test hangs for a…

Tushar Jagtap
- 45
- 1
- 1
- 7
0
votes
1 answer
How to cancel resumable UploadChunk with google-cloud-cpp
namespace gcs = google::cloud::storage;
using ::google::cloud::StatusOr;
auto client_options =
gcs::ClientOptions::CreateDefaultClientOptions();
auto client =…

Tushar Jagtap
- 45
- 1
- 1
- 7
0
votes
1 answer
How to enable logging for google-cloud-cpp sdk
I'm using google-cloud-cpp SDK from here: https://github.com/googleapis/google-cloud-cpp. However, I can't seem to figure out how to enable logging for the client library and find out where the log file goes. I'm interested in seeing all the HTTP…

Tushar Jagtap
- 45
- 1
- 1
- 7
0
votes
1 answer
Problems with install build of google cloud storage cpp library on Linux
I am trying to build and install google-cloud-cpp on a Rehat 7 system. I am using the cmake install option using instructions found on https://github.com/googleapis/google-cloud-cpp-common/blob/master/INSTALL.md.
I have installed all of the…

JohnP
- 1
0
votes
1 answer
CMake of google-cloud-cpp Fails
The CMake build of google-cloud-cpp fails with this error:
$ cmake -H. -Bcmake-out
-- The CXX compiler identification is GNU 9.3.0
-- The C compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX…

mortymacs
- 3,456
- 3
- 27
- 53
0
votes
1 answer
Is there a way to use an http proxy for google-cloud-cpp?
I am using google-cloud-cpp (C++ API for Google Cloud Platform functions) to create/read/write to buckets. When I am working from within the organization's firewall, I have to use a proxy to be able to connect to google cloud.
I see that we can…

San
- 11
- 2
-2
votes
1 answer
How to set the Project ID for C++ storage client
How does one set the Project ID for the C++ Google Cloud Storage client?
The example code below throws an exception:
Permanent error SignBlob: Received HTTP status code: 404
If I set the environment variable, the code works.
set…

John Hanley
- 74,467
- 6
- 95
- 159