Thanks for all your points. Many things learnt here.

From my first post I am calling C from C++. I have a C library that I am testing and the client is written in C++.

Thanks,