Simply doing your natice C++- code between extern "C" { your code }. Is something that not always will necessarily work - as you can check here.
www.google.com.tw