add C++ example for toolchain

- tested in a Linux environment