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.

$ sudo apt-get install git

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

$ git clone

All C examples are built using Make. We will demonstrate the build steps using the publish-subscribe example.

$ cd $PSYNC_HOME/examples/c/publish_subscribe
$ make

To run the application supply the relative path.

$ ./bin/polysync-publish-subscribe-c

You can quickly install the binary to the system -- PSYNC_HOME/bin -- using the make install command.

$ make install 
Have more questions? Submit a request


  • 0

    Typo: repository is named PolySync-C-Examples, not C-Examples

  • 0
    Lyle Johnson

    Fixed! Thank you for pointing it out.

Please sign in to leave a comment.