https://github.com/GoogleCloudPlatform/google-cloud-cpp/ quickstart.cc
构建所有可用库后,运行storage_quickstart
/home/google-cloud-cpp/build-output/google/cloud/storage/examples/storage_quickstart bucket_name project_id听好了
Standard C++ exception raised: [json.exception.parse_error.101] parse error at 1: syntax error - unexpected end of input; expected '[', '{', or a literal误差在
namespace gcs = google::cloud::storage;
gcs::Client client;有什么想法吗?
发布于 2018-10-03 13:23:32
看起来您的GOOGLE_APPLICATION_DEFAULT_CREDENTIALS没有设置,或者指向错误格式的文件。希望这里的文档:
https://googlecloudplatform.github.io/google-cloud-cpp/latest/storage/index.html
可以帮你解决这个问题。如果您需要更多帮助,请随时打开GitHub页面中的一个bug。
https://stackoverflow.com/questions/52625564
复制相似问题