#define myf77 myf77_ extern "C" double myf77(int &arg1, double &arg2); void myc2f77(int arg1, double arg2) { double res = myf77(arg1,arg2); printf("res=%g\n",res); }