From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,155cd148fb637302 X-Google-Attributes: gidfee84,public From: hattonps@bham.ac.uk (PS Hatton) Subject: Re: Calling FORTRAN from cxx Date: 1996/06/19 Message-ID: <4q8j7p$g6j@sun4.bham.ac.uk>#1/1 X-Deja-AN: 160960493 references: <31C01EAC.41C6@bham.ac.uk> organization: The University of Birmingham, UK. newsgroups: comp.unix.osf.osf1 Thanks to all who replied - the C linkage works for FORTRAN as well. PS Hatton (P.S.Hatton@bham.ac.uk) wrote: : Is it possible to call a FORTRAN (77 or 90) routine from cxx? Section : 2.3.13 of 'Using DEC C++ for DEC OSF/1 Systems' says that : 'Specifying linkage other than "C++" or "C" generates a compile- : time error' (which it does) : which would imply not, and not specifying anything on the extern : statement in the calling C++ code generates a linker error. Calling : FORTRAN from C, as per the Fortran manuals, works fine. : This has been asked by one of our users, and I'm no C++ expert, so : any help would be appreciated.