-
I've got a simple C++ program that uses that AWS CPP SDK. Here is the entirity of the source code.
In addition to this source code, I have also added the folder that has the compiled libs that were installed from the SDK compilation to the additional lib folders setting for the project, and I've added the include folder from the aws cpp installation to the additional include folder settings. In the above, I have a This is the error output for the shortest set of errors that I got.
To compile the SDK I made a batch file. This ensures that I am compiling it the same way on any machine that I try. Here is what I did to compile the SDK.
If the settings Can anyone tell me what is going on here? Why is it that the SDK is never able to resolve these externals? If I reference other libraries, some of those libraries have this issue, some do not. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You are compiling SDK statically, but then trying to import symbols from dll. You likely dont need USE_IMPORT_EXPORT as thats what defines the dllimport symbol |
Beta Was this translation helpful? Give feedback.
-
I've documented how I compiled the AWS C++ SDK and provided a batch file that will do most of what needs to be done. From a Visual Studio developer console with admin level privileges, I have a batch file that I run that clones the SDK and compiles 4 variations of it. Debug-Shared, Debug-Static, Release-Shared, Release-Static. You can find more on that here. The resolution to my issue was that there were many other DLLs that I needed to link to. I hadn't realized there were dependencies on these DLLs from the ones I was linking with. I'm using Visual C++'s
More information on how I arrived at this is in the link posted above. The script I used for compiling the SDK can be found at https://github.com/j2inet/DevSetup/blob/main/aws-cpp/aws-cpp-sdk-setup.cmd |
Beta Was this translation helpful? Give feedback.
I've documented how I compiled the AWS C++ SDK and provided a batch file that will do most of what needs to be done. From a Visual Studio developer console with admin level privileges, I have a batch file that I run that clones the SDK and compiles 4 variations of it. Debug-Shared, Debug-Static, Release-Shared, Release-Static. You can find more on that here.
https://blog.j2i.net/2025/03/25/compiling-and-linking-to-the-aws-c-sdk/
The resolution to my issue was that there were many other DLLs that I needed to link to. I hadn't realized there were dependencies on these DLLs from the ones I was linking with. I'm using Visual C++'s
#pragma comment(lib, "whatever.lib")
to link to the DLLs. To l…