This topic describes how to prepare the environment before you use the SDK for C++ to send and receive messages.
Procedure
- Download the source code repository of the C++ client.For more information about the download version and URL, see Release notes.
- Install the compilation tool by following the operations described in the README.md file in the repository.
- Obtain the resources. You must create resources that are used in the code of the SDK in the console in advance, including the instance endpoint, topic name, and group ID. For more information, see Create resources.
- Compile and install the SDK, modify the parameters for the SDK based on the resources that are obtained in Step 3, and then run the sample code. For more information, see https://github.com/apache/rocketmq-clients/blob/master/cpp/README.md#run-examples.