zhangzifa f877a9ef39 update readme 7 anni fa
..
cdn 5f3caa1943 add examples and build with as many cpus as possible 7 anni fa
ecs f877a9ef39 update readme 7 anni fa
imagesearch eb7ab33440 add DEBUG switch and fix win build error 7 anni fa
nlp eb7ab33440 add DEBUG switch and fix win build error 7 anni fa
rds 5f3caa1943 add examples and build with as many cpus as possible 7 anni fa
slb 5f3caa1943 add examples and build with as many cpus as possible 7 anni fa
vpc 5f3caa1943 add examples and build with as many cpus as possible 7 anni fa
CMakeLists.txt f877a9ef39 update readme 7 anni fa
README.md f877a9ef39 update readme 7 anni fa
README_zh.md f877a9ef39 update readme 7 anni fa
utils.h f877a9ef39 update readme 7 anni fa

README.md

how to use examples

1. Install SDK according to README

2. build examples

Linux

cd path/to/aliyun-openapi-cpp-sdk
cd examples
mkdir build
cd build
cmake ..
make -j

Windows

  • Generate Visual Studio solution with the same way as buidl SDK.

    • Run cmake-ui

    • select source code path(examples dir) and build path (create build dir in examples dir).

    • configure

    • generate

  • Open alibabacloud-sdk-examples.sln in build directory.

  • Build -> Build Solution

3. run examples

Linux

  • configure accessKeyId and accessKeySecret via env and then Run.

    export ENV_AccessKeyId="your-accessKeyId"
    export ENV_AccessKeySecret="your-accessKeySecret"
    
    cd path/to/aliyun-openapi-cpp-sdk
    cd examples/build/bin
    
    # run ecs_demo
    ./ecs_demo
    ...
    

Windows

Configure env according to your windows OS.

Run .exe file in command window in directory build\bin\Release