Search code examples
c++boostaws-sdk-cpp

aws-sdk-cpp exception handling disabled, use -fexceptions to enable


I have problem with integration of aws-sdk-cpp with boost and any exception handling.

As soon I linked in cmakelists aws-cpp-sdk-s3 compiler became very strict: errors per unused param, exception handling disabled. I have no idea how I can configure it. Can't find anything in documentation.


Solution

  • I had the same problem. When i changed the line

    find_package(aws-sdk-cpp)
    

    to

    find_package(AWSSDK REQUIRED)
    

    everything worked fine. Not sure why this works, but it seems to work!