This topic describes how to prepare the environment before you use the SDK for C++ to send and receive messages.

Procedure

  1. Download the source code repository of the C++ client.
    For more information about the download version and URL, see Release notes.
  2. Install the compilation tool by following the operations described in the README.md file in the repository.
  3. 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.
  4. 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.