I'm trying to call a FORTRAN subroutine from my C code. I get link errors because the FORTRAN sub has calls to intrinsic functions in it (LOG, SQRT, etc.). When I comment these lines out of the sub everything works fine. Suggestions?
Printable View
I'm trying to call a FORTRAN subroutine from my C code. I get link errors because the FORTRAN sub has calls to intrinsic functions in it (LOG, SQRT, etc.). When I comment these lines out of the sub everything works fine. Suggestions?
Anyone do any mixed language programming?
I did, ages ago.
It sounds like you're not linking with a required FORTRAN library. If you're linking with the C linker, it doesn't have a clue about FORTRAN libraries so you need to specify them explicitly.
Good luck -- I know it's not fun.
Alvaro