simple example of calling C++ routines from C and Fortran