CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 1999
    Posts
    2

    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?


  2. #2
    Join Date
    Jun 1999
    Posts
    2

    Re: Linking FORTRAN and C; intrinsic functions

    Anyone do any mixed language programming?


  3. #3
    Join Date
    Jun 1999
    Location
    Miami, FL
    Posts
    972

    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
  •  





Click Here to Expand Forum to Full Width

Featured