This topic introduces the prerequisites and required environment for using the C++ SDK.
Prerequisites
To use the C++ SDK, your environment must support GCC 4.9.2 for compilation. Please ensure your compilation environment is properly configured before installing and using the SDK.
Download the C++ SDK
C++ version 2.13.0.
C++ version 2.14.0.
C++ version 2.15.0.
C++ version 2.23.0.
C++ version 2.25.0.
Initialize the environment
You can access DataHub using your Alibaba Cloud account. The following information is required:
The AccessKey ID and AccessKey Secret. For more information, see Create an AccessKey pair.
The endpoint used to access DataHub.
The following code shows how to create a DataHubClient using DataHub endpoints:
/* Configuration */
Account account;
account.id = "your_accesskey_id";
account.key = "your_accesskey_secret";
std::string projectName = "test_project";
std::string topicName = "test_cpp";
std::string comment = "test";
std::string endpoint = "";
Configuration conf(account, endpoint);
/* Datahub Client */
DatahubClient client(conf);Next steps
After initializing the environment, you can start developing with the DataHub C++ SDK in your current environment.