I have a big problem. I want to call a routine in Java from Fortran dll. I have the wrapper c++ that let me conect with fortran, but when I try to compile the dll with the wrapper in c++ and the fortran code I obtain some link errors, for example, it does't find the symbol netcal. Should I compile the two codes together?? How I must compile it? I use compaq visual. I show you the simply code that I have.
the file in c++ is:
extern "C" void netcal(long*a, long*b, long*c);
JNIEXPORT void JNICALL Java_clase_netcal
(JNIEnv *, jobject, jint a, jint b, jint c)
netcal(&a, &b, &c);
and the code in fortran is:
integer, target, intent(in)::a,b
integer, target, intent(out)::c
end subroutine netcal
Thank you very much!!