C++ Example compiles but does not run properly

You could look at this link:C++ API: running example and cluster_mode_test segfaults on Mac OS

Let me know if you have any questions.