Dear Customers,

The PolySync Support Center is now just for submitting tickets to our support team. All articles and tutorials have been moved to the new PolySync Help Center and the content below will be removed shortly.

Thank you,
The PolySync Team

Compile and run C++ examples

How to compile and run a C++ example

Before you can clone the example application repositories you will need to install git. If you intend to build C++ examples you will also need to install cmake.

$ sudo apt-get install git cmake

To begin working with the C++ example applications we will clone all source code from the public GitHub repo using git.

$ git clone

All C++ examples are built using cmake. We will demonstrate the build steps using the PublishSubscribe example.

$ cd $PSYNC_HOME/examples/cpp/PublishSubscribe
$ mkdir build && cd build
$ cmake ..    # path to directory containing CMakeLists.txt file
$ make

To run the application supply the relative path.

$ ./polysync-publish-subscribe-cpp
Have more questions? Submit a request


Please sign in to leave a comment.