I would like to call a FORTRAN function from my C++ code. The FORTRAN function is something like this
extern "C" { void FORTRANFUNC( void FCN(int*,double*), int *N); }
The FCN function reported above is a member function of a C++ class
class CppClass
{
...
void FCN(int* a, double* b);
...
};
I would like to call the code in this way, but it seems that it is not possible:
FORTRANFUNC(myClass.FCN, &n_);
The compiler complains because the FORTRAN functions wants a void FCN function, while I am passing a CppClass::void function.
Can you help me?