Software Archive
Read-only legacy content

mixed F/C

Intel_C_Intel
Employee
407 Views
Hello!

Can I call a Fortran subroutine from a C function, which is called by a Fortran Main program?

To make it clearer:
I have 3 programs:
1) Main program coded in FORTRAN: F_main
2) a void function in C: c_sub1
3) a subroutine in FORTRAN: f_sub2

in F_main, c_sub1 is called;
in c_sub1, f_sub2 is called.

I was able to call c_sub1 when f_sub2 was not declared and used in c_sub1. When I added the relative info into c_sub1 about f_sub2. The F_main couldn't find c_sub1.

Your help is highly appreciated!

Jenny
0 Kudos
0 Replies
Reply