当我编译并运行以下试图使用'libs3'将文件夹上传到Amazon S3的C文件时,为什么会出现分段错误?我是否可以设置S3PutProperties来解决此问题?
#include <libs3.h>
#include <stdio.h>
#include <stdlib.h>
void main() {
S3_initialize(0,S3_INIT_ALL,0);
S3BucketContext bucketContext =
{
0,
"megaducket",
S3ProtocolHTTPS,
S3UriStylePath,
"AKIAJ4DO2NEYGYVDKLVQ",
"TRBaEFEG2mNNkLknSfgNoOtqWRRHPp3XM1Ypgmbl",
"eu-west-2",
0,
};
printf("My name is milan\n");
// S3PutProperties putProperties = {
// }
S3_put_object(&bucketContext, "/home/milanlakhani/Documents/aoc", 63200000, 0, 0, 0, 0, 0);
S3_deinitialize();
}