Closed bgav closed 4 months ago
Can you make sure that you are following our guidelines for using this sdk. Specifically making all sdk calls within brackets {}
to make sure that the scope is managed correctly.
#include <aws/core/Aws.h>
int main(int argc, char** argv)
{
Aws::SDKOptions options;
Aws::InitAPI(options);
{
// make your SDK calls here.
}
Aws::ShutdownAPI(options);
return 0;
}
I was able to setup this docker container that matches the environment you're using:
To run this put all three files in one folder and run the following commands:
docker build -t amzlinux2023 .
docker run --name amzlinux2023_container amzlinux2023
Please let me know if you still have any problems with using this sdk.
Thanks for your advice, Joseph. I'll review our code upon it and let you know. It was strange for me, that it compiles with other gcc toolchains and also VS2022.
I found the issue in our environment. Compilation issue resolved. Thanks a lot for your time and efforts.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
Describe the bug
Hello,
We are trying to port our solution to Amazon Linux 2023 on AMD and Graviton. As I understand, the only option for C++ development there is default toochain for gcc-g++11.
Following code compiles with devtoolset-10 (RHEL7) and gcc-toolset-13 (RHEL9). It also fails with gcc11 on RHEL9. Since there is no toolsets option on Linux 2023, we need to make it working with gcc11 environment. Do you have any idea?
Expected Behavior
Expecting the code compiles
Current Behavior
CPP file excerpt:
H file excerpt
Reproduction Steps
I think provided code is enough for reproduction
Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
1.11
Compiler and Version used
g++ (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2)
Operating System and version
Amazon Linux 2023