c++ - PutItemRequest results in errors -


i use nuget download packages aws dynamodb , aws core. trying dynamodb, header file results in awful errors:

#include <afxwin.h> #include<iostream> #include<aws\core\aws.h> #include<aws\dynamodb\dynamodbclient.h> #include<aws\dynamodb\dynamodbrequest.h> #include<aws\dynamodb\model\attributevalue.h> #include<aws\dynamodb\dynamodb_exports.h> #include<aws\dynamodb\dynamodbendpoint.h> #include<aws\dynamodb\dynamodberrormarshaller.h> #include<aws\dynamodb\dynamodberrors.h> #include<aws\core\auth\awscredentialsprovider.h> #include<aws\core\platform\environment.h> #include<aws\core\platform\filesystem.h> using namespace std; class cmyframe : public cframewnd { public: cmyframe() {     create(null, _t("mfc application tutorial")); } };  class cexample : public cwinapp { bool initinstance() {     aws::sdkoptions options;     aws::initapi(options);      cmyframe *frame = new cmyframe();     m_pmainwnd = frame;      frame->showwindow(sw_normal);     frame->updatewindow();     aws::shutdownapi(options);      return true; } };  cexample theapp; 

the above code works normally, when add #include<aws\dynamodb\model\putitemrequest.h> without changing other code, build , display:

 expected identifier, syntax error:','    ',':unexpected token,expected either '}' or ','. 

why happens ? include 1 more header file. header file provided amazon sdk, cannot have synatx error.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -