aws / aws-iot-device-sdk-cpp

SDK for connecting to AWS IoT from a device using C++
http://aws-iot-device-sdk-cpp-docs.s3-website-us-east-1.amazonaws.com
Apache License 2.0
123 stars 111 forks source link

Can this SDK works with C++0x? #159

Closed agilesai1294 closed 5 years ago

agilesai1294 commented 5 years ago

I am trying to port this SDK on to one of the legacy devices which use c++0x standard. I was able to build the project and when i tried to make it i get the following error.

[ 1%] Building CXX object CMakeFiles/aws-iot-sdk-cpp.dir/src/Action.cpp.obj In file included from /home/bharathaws/aws-iot-device-sdk-cpp/src/Action.cpp:26: /home/bharathaws/aws-iot-device-sdk-cpp/include/Action.hpp:30: fatal error: atomic: No such file or directory compilation terminated. CMakeFiles/aws-iot-sdk-cpp.dir/build.make:62: recipe for target 'CMakeFiles/aws-iot-sdk-cpp.dir/src/Action.cpp.obj' failed make[2]: [CMakeFiles/aws-iot-sdk-cpp.dir/src/Action.cpp.obj] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/aws-iot-sdk-cpp.dir/all' failed make[1]: [CMakeFiles/aws-iot-sdk-cpp.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

justinboswell commented 5 years ago

Unfortunately, this SDK requires/depends on C++11 features, as detailed here.