Calling Fortran Subroutine in C

Dear All

I am using Microsoft visual C++ 2008 express edition.

I want to call a FORTRAN 90 subroutine in my C program.this subroutine should be called in a C function.

How can I do that?

any idea?

All the best
Last edited on
There are three ways to approach this:
1. Translate the code to C either manually or with a program.
2. Compile to object code and link it with the rest of the project. You'll have to declare the subroutine in a way that C can understand it.
3. Call a FORTRAN interpreter from your function and interpret the subroutine.

I think 2 is the best option.
Last edited on
Topic archived. No new replies allowed.