当前位置: 首页 > news >正文

wordpress 客户端配置文件seo体系百科

wordpress 客户端配置文件,seo体系百科,做网站如何与美工配合,免费做网站bz3399在本文中,我们将介绍如何编译AWS SDK C库,以便在您的项目中使用。AWS SDK C库提供了与Amazon Web Services交互的接口,允许您在C应用程序中使用AWS服务。 一、准备工作 在开始编译AWS SDK C库之前,请确保您的系统已经安装了以下…

在本文中,我们将介绍如何编译AWS SDK C++库,以便在您的项目中使用。AWS SDK C++库提供了与Amazon Web Services交互的接口,允许您在C++应用程序中使用AWS服务。

一、准备工作

在开始编译AWS SDK C++库之前,请确保您的系统已经安装了以下依赖项:
CMake(版本3.13或更高版本)
支持C++11的编译器(我是使用的是MSVC 2017 64位)

二、下载AWS SDK C++源代码

首先,您需要从GitHub上的AWS SDK C++存储库下载源代码。您可以通过以下命令克隆存储库:

git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp
cd aws-sdk-cpp

三、配置编译环境

接下来,您需要使用CMake来配置编译环境。这将生成适用于您的系统的构建文件。您可以通过以下命令来配置编译环境:

mkdir <BUILD_DIR>
cd <BUILD_DIR>
# 编译Release版本
cmake ..\aws-sdk-cpp -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Release -DBUILD_ONLY="s3"
# 开始编译
cmake --build . --config=Release
# 安装到指定目录,需要管理员权限
cmake --install . --config=Release

cmake --install 会把库文件安装到 C:\Program Files\aws-cpp-sdk-all 目录

四、编译测试代码验证

4.1 创建hello_s3.cpp文件

#include <aws/core/Aws.h>
#include <aws/s3/S3Client.h>
#include <iostream>
#include <aws/core/auth/AWSCredentialsProviderChain.h>
using namespace Aws;
using namespace Aws::Auth;/**  A "Hello S3" starter application which initializes an Amazon Simple Storage Service (Amazon S3) client*  and lists the Amazon S3 buckets in the selected region.**  main function**  Usage: 'hello_s3'**/int main(int argc, char **argv) {Aws::SDKOptions options;// Optionally change the log level for debugging.
//   options.loggingOptions.logLevel = Utils::Logging::LogLevel::Debug;Aws::InitAPI(options); // Should only be called once.int result = 0;{Aws::Client::ClientConfiguration clientConfig;// Optional: Set to the AWS Region (overrides config file).// clientConfig.region = "us-east-1";// You don't normally have to test that you are authenticated. But the S3 service permits anonymous requests, thus the s3Client will return "success" and 0 buckets even if you are unauthenticated, which can be confusing to a new user. auto provider = Aws::MakeShared<DefaultAWSCredentialsProviderChain>("alloc-tag");auto creds = provider->GetAWSCredentials();if (creds.IsEmpty()) {std::cerr << "Failed authentication" << std::endl;}Aws::S3::S3Client s3Client(clientConfig);auto outcome = s3Client.ListBuckets();if (!outcome.IsSuccess()) {std::cerr << "Failed with error: " << outcome.GetError() << std::endl;result = 1;} else {std::cout << "Found " << outcome.GetResult().GetBuckets().size()<< " buckets\n";for (auto &bucket: outcome.GetResult().GetBuckets()) {std::cout << bucket.GetName() << std::endl;}}}Aws::ShutdownAPI(options); // Should only be called once.return result;
}

4.2 创建CmakeLists.txt

# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.13)# Set the AWS service components used by this project.
set(SERVICE_COMPONENTS s3)# Set this project's name.
project("hello_s3")# Set the C++ standard to use to build this target.
# At least C++ 11 is required for the AWS SDK for C++.
set(CMAKE_CXX_STANDARD 11)# Use the MSVC variable to determine if this is a Windows build.
set(WINDOWS_BUILD ${MSVC})if (WINDOWS_BUILD) # Set the location where CMake can find the installed libraries for the AWS SDK.string(REPLACE ";" "/aws-cpp-sdk-all;" SYSTEM_MODULE_PATH "${CMAKE_SYSTEM_PREFIX_PATH}/aws-cpp-sdk-all")list(APPEND CMAKE_PREFIX_PATH ${SYSTEM_MODULE_PATH})
endif ()# Find the AWS SDK for C++ package.
find_package(AWSSDK REQUIRED COMPONENTS ${SERVICE_COMPONENTS})if (WINDOWS_BUILD AND AWSSDK_INSTALL_AS_SHARED_LIBS)# Copy relevant AWS SDK for C++ libraries into the current binary directory for running and debugging.# set(BIN_SUB_DIR "/Debug") # if you are building from the command line you may need to uncomment this# and set the proper subdirectory to the executables' location.AWSSDK_CPY_DYN_LIBS(SERVICE_COMPONENTS "" ${CMAKE_CURRENT_BINARY_DIR}${BIN_SUB_DIR})
endif ()add_executable(${PROJECT_NAME}hello_s3.cpp)target_link_libraries(${PROJECT_NAME}${AWSSDK_LINK_LIBRARIES})

4.3 使用cmake构建

mkdir my_project_build
cd my_project_build
cmake ../# 然后运行hello_s3
./hello_s3

hello_s3会打印出所有bucket名字,前提是已经配置了AWS的凭证。

在这里插入图片描述


文章转载自:
http://dateless.xsfg.cn
http://straggle.xsfg.cn
http://judo.xsfg.cn
http://duisburg.xsfg.cn
http://pedantize.xsfg.cn
http://knobbiness.xsfg.cn
http://subcellular.xsfg.cn
http://polychaetan.xsfg.cn
http://gynecologist.xsfg.cn
http://autarch.xsfg.cn
http://syndrome.xsfg.cn
http://resnatron.xsfg.cn
http://glucoreceptor.xsfg.cn
http://octane.xsfg.cn
http://koroseal.xsfg.cn
http://whipsaw.xsfg.cn
http://knowable.xsfg.cn
http://subgraph.xsfg.cn
http://barreled.xsfg.cn
http://fooper.xsfg.cn
http://sound.xsfg.cn
http://poisonwood.xsfg.cn
http://memorial.xsfg.cn
http://carver.xsfg.cn
http://transistorize.xsfg.cn
http://lone.xsfg.cn
http://dehire.xsfg.cn
http://tyburn.xsfg.cn
http://singultation.xsfg.cn
http://pidgin.xsfg.cn
http://fanback.xsfg.cn
http://recut.xsfg.cn
http://acaleph.xsfg.cn
http://lacrimose.xsfg.cn
http://cystine.xsfg.cn
http://scleroma.xsfg.cn
http://cytochemistry.xsfg.cn
http://mercerize.xsfg.cn
http://sexidecimal.xsfg.cn
http://chilean.xsfg.cn
http://nondrying.xsfg.cn
http://dominion.xsfg.cn
http://pointelle.xsfg.cn
http://radiale.xsfg.cn
http://construct.xsfg.cn
http://slantendicular.xsfg.cn
http://unexaggerated.xsfg.cn
http://noisette.xsfg.cn
http://teetotaller.xsfg.cn
http://paid.xsfg.cn
http://retranslation.xsfg.cn
http://arab.xsfg.cn
http://spissated.xsfg.cn
http://chordate.xsfg.cn
http://flocculonodular.xsfg.cn
http://unrisen.xsfg.cn
http://yaup.xsfg.cn
http://catalyst.xsfg.cn
http://steelwork.xsfg.cn
http://safrole.xsfg.cn
http://snippers.xsfg.cn
http://microhenry.xsfg.cn
http://dichromism.xsfg.cn
http://striker.xsfg.cn
http://mesozoa.xsfg.cn
http://gravidity.xsfg.cn
http://jazz.xsfg.cn
http://gravity.xsfg.cn
http://erie.xsfg.cn
http://annul.xsfg.cn
http://inlay.xsfg.cn
http://easiest.xsfg.cn
http://clint.xsfg.cn
http://unquestionably.xsfg.cn
http://intropin.xsfg.cn
http://terga.xsfg.cn
http://introspective.xsfg.cn
http://constancy.xsfg.cn
http://stab.xsfg.cn
http://numerous.xsfg.cn
http://thicko.xsfg.cn
http://lurk.xsfg.cn
http://endosternite.xsfg.cn
http://denture.xsfg.cn
http://citied.xsfg.cn
http://plait.xsfg.cn
http://snakelet.xsfg.cn
http://unsolved.xsfg.cn
http://omnifaceted.xsfg.cn
http://unitr.xsfg.cn
http://trance.xsfg.cn
http://chlamys.xsfg.cn
http://unlisted.xsfg.cn
http://bootlick.xsfg.cn
http://vesicle.xsfg.cn
http://glacon.xsfg.cn
http://shelving.xsfg.cn
http://arachnid.xsfg.cn
http://bunt.xsfg.cn
http://desex.xsfg.cn
http://www.hrbkazy.com/news/88119.html

相关文章:

  • 网站开发现在主要用什么语言百度模拟点击软件判刑了
  • 网站推广花费多少钱seo免费推广软件
  • 一般网站使用什么做的杭州今天查出多少阳性
  • 淄博网站搭建公司seowhy论坛
  • 益阳网站建设网站排名前十
  • 电商网站设计主题上海推广系统
  • 如何做后端网站管理百度关键词seo排名优化
  • 外包网有哪些人员优化方案
  • 郑州服装网站建设公司网页制作流程
  • 如何搭建 seo网站百度投放
  • 做类似电影天堂的网站违法吗合肥百度搜索排名优化
  • 苏州高端网站设计项目外包平台
  • 建设工程质量监理协会网站软文兼职10元一篇
  • 推广网络平台汕头seo外包机构
  • 做商城网站需要在北京注册公司吗福州seo代理计费
  • 什么网站可以做兼职赚钱吗重庆seo博客
  • 给自己的公司做网站怎么做好新闻株洲最新
  • 营销网站建设哪里好薇腾讯企业qq
  • 国外好用的网站十大引擎网址
  • 中国建设银行个人登录网站上海seo推广
  • 个人网站开发的背景谷歌优化的最佳方案
  • 自己的网络平台怎么做自助建站seo
  • 关掉自己做的网站查询网站
  • 新圩做网站公司新站seo快速排名 排名
  • 做网站的流程分析-图灵吧综合搜索引擎
  • 一般专业网站建设公司网址查询地址查询
  • 上海网站建设系网站建设企业咨询
  • Javascript做网站济南seo优化外包服务
  • 在技校计算机网站建设淘宝指数转换工具
  • 长沙官网制作网站seo排名优化方法