static const char* AWS_ACCESS_KEY_ID = "XXXXXXXXXXXXX";
static const char* AWS_SECRET_ACCESS_KEY = "YYYYYYYYYY";
AWSCredentials credentials(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY);
上面的代码在visual studio中给出了incomplete type is not allowed
的错误,导致构建错误为use of undefined type 'Aws::Auth::AWSCredentials'
请指出构建AWSCredentials对象的正确方法吗?
答案 0 :(得分:0)
确保包含该类的头文件。
另外,请确保使用该类Aws::Auth::AWSCredentials
的完全限定名称,或者使用using
语句using namespace Aws::Auth;