Skip to content

Unable to build a simple S3 Client #14

Closed
@satyenr

Description

@satyenr

While trying to build a simple S3 client similar to one presented at AWS Blog, I am getting the following error:

test.cxx:6:35: error: variable has incomplete type 'Aws::S3::Model::GetObjectRequest'
        Aws::S3::Model::GetObjectRequest getObjectRequest;
                                         ^
/home/satyenr/github/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/S3Client.h:128:15: note: forward declaration of 'Aws::S3::Model::GetObjectRequest'
        class GetObjectRequest;
              ^

Here is the code snippet that is throwing the error:

    Aws::S3::S3Client s3Client;
    Aws::S3::Model::GetObjectRequest getObjectRequest;
    getObjectRequest.SetBucket("test-bucket");
    getObjectRequest.SetKey("test.txt");

Am I missing something here?

Additionally, some explanation of ALLOCATION_TAG would be really helpful.

Is there any documentation or examples that I can use to explore this further?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions