pro64-support
[Top] [All Lists]

C-Fortran programs interface

To: "'pro64-support@xxxxxxxxxxx'" <pro64-support@xxxxxxxxxxx>
Subject: C-Fortran programs interface
From: "Kakulavarapu, Prasad" <prasad.kakulavarapu@xxxxxxxxx>
Date: Thu, 24 Aug 2000 23:26:34 -0700
Sender: owner-pro64-support@xxxxxxxxxxx
Hello,

I am trying to link a C pogram (with main), and a Fortran subroutine (called
from the main in C program);

The SGIf90 linker complains that the Fortran subroutine name is undefined;
the same routines work perfectly in the Win64 world, and Win32 world with
Compaq, Intel Fortran compilers.

Thanks,
Prasad

Please see an example:
C program:

extern GRAM();
main(int argc, char* argv[]))
{
GRAM();
}

Fortran program:

      subroutine GRAM()
      return
      end






<Prev in Thread] Current Thread [Next in Thread>