C++ embedding example should do the same as the C embedding example