I'm trying to build simple programm with AWS C++ SDK and MSVC2015:
#include <iostream>
#include <aws\core\Aws.h>
int main()
{
Aws::SDKOptions options;
Aws::InitAPI(options);
{
std::cout << "success\n";
}
Aws::ShutdownAPI(options);
return 0;
}
First, I've got linker error about 2 unresolved externals -InitAPI
and ShutdownAPI
. (AWS SDK was build as static libraries).
I added aws-cpp-sdk-core.lib
to the "ConfigurationProperties->Linker->Input->Additional Dependencies". Now these two externals are resolved, but I get 37 new unresolved exernals - supposedly used by added library.
So the question is - how to determine what other libraries I should add? Is there a way to do it automatically in Visual Studio?
Upd. "New" unresolved externals are of these kinds:
BCryptXXX
_imp_HttpXXX
_imp_InternetXXX
_imp_WinHttpXXX