how to call Fortran function from a C program

how to call Fortran function from a C program

Post by Michael Ma » Sat, 14 Feb 1998 04:00:00



I need to use some functions which were written in Fortran.  I want to
call the functions from my C program.  How can I do it?  I have tried
'f2c' to get the translated C code, but still failed.  Many thanks for the
help.

Regards,

michael man

PS:  Please send a copy of your response directly to me at

 
 
 

1. How to call a C program for a fortran program

Hello Computer Lords and Ladies

        I have a problem that I hope someone can help me with.  I need to be
able to call a C program from a FORTRAN program, and from a Pascal program.
        Does anyone out there have an example of how this could work for either
Fortran or Pascal.  (I need the Fortan one most of all).
        Please help me if you can, and please respond in mail if you can.


2. Posting Test

3. Calling a C program from a Fortran program: repost

4. LILO 'ran out of input data'

5. how to know the instruction address of calling function within called function?

6. /var keeps filling up

7. Browser calls CGI C function which sets an env var and call a c function crashes

8. Launching Mozilla M16 from desktop

9. AIX fortran calling character function written in C

10. Calling C from Fortran: Function always returns zero?

11. How can I compile the program( call Fortran(lf95) from C(gcc) ) on Linux?thanks

12. Need help: call fortran routine in C programs

13. Post to a C-program that calls a Fortran EXE not working...