- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page