Code Monkey home page Code Monkey logo

Comments (8)

 avatar commented on May 12, 2024

Hi,

Thanks for the question. We asked one of our C++ SDK engineers, and he suggested that there might be a compatibility issue with the version of GCC you're using. Do you know what version of GCC you're compiling with? GCC 4.8 does not support C++11, and the C++ SDK source code is full of C++11 syntax. So that could explain the issue. But if not, please let us know. Thanks!

David

from aws-doc-sdk-examples.

MainReturnZero avatar MainReturnZero commented on May 12, 2024

Hi,
Thanks for your reply. I am using GCC 5.4.

from aws-doc-sdk-examples.

marcomagdy avatar marcomagdy commented on May 12, 2024

Can you paste your cmake command arguments please?

from aws-doc-sdk-examples.

MainReturnZero avatar MainReturnZero commented on May 12, 2024

~/aws-doc-sdk-examples/cpp/s3-build$ cmake -Daws-sdk-cpp_DIR=~/build_aws-sdk-cpp/ ../example_code/s3

output:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/local/ANT/alanhli/aws-doc-sdk-examples/cpp/s3-build

from aws-doc-sdk-examples.

MainReturnZero avatar MainReturnZero commented on May 12, 2024

cmake success, but make failed.

from aws-doc-sdk-examples.

singku avatar singku commented on May 12, 2024

In cpp/example_code/s3/get_bucket_policy.cpp:54, outcome.GetResult().GetPolicy() returns a Aws::IOStream reference, it's not a std::ostream in behind. We could either get the content from the buffer, since it's example code, the content may not exceed the buffer, or we could loop the stream and output the contents to another Aws::String object.

from aws-doc-sdk-examples.

EronHennessey avatar EronHennessey commented on May 12, 2024

Thanks @singku (and for the pull request that fixes it)! 👍

from aws-doc-sdk-examples.

EronHennessey avatar EronHennessey commented on May 12, 2024

Since @singku's PR fixed the issue, I'm closing this. Please re-open or start a new issue if there are still problems... Thanks!

from aws-doc-sdk-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.