|
-
June 18th, 1999, 09:21 AM
#1
Linking FORTRAN and C; intrinsic functions
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?
-
June 21st, 1999, 10:13 AM
#2
Re: Linking FORTRAN and C; intrinsic functions
Anyone do any mixed language programming?
-
June 21st, 1999, 11:25 AM
#3
Re: Linking FORTRAN and C; intrinsic functions
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|