From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,155cd148fb637302,start X-Google-Attributes: gidfee84,public From: PS Hatton Subject: Calling FORTRAN from cxx Date: 1996/06/13 Message-ID: <31C01EAC.41C6@bham.ac.uk>#1/1 X-Deja-AN: 159974720 cc: P.S.Hatton@bham.ac.uk content-type: text/plain; charset=us-ascii organization: The University of Birmingham mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.01 (X11; I; OSF1 V3.2 alpha) 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. -- +--------------------------------------------------------------------+ | Paul Hatton | Voice : (UK) 0121-414-3994 | | Senior Computer Officer | Fax : (UK) 0121-414-3952 | | Information and Computing Systems | E-mail : P.S.Hatton@bham.ac.uk | | Information Services, Elms Road, +--------------------------------| | The University of Birmingham, Edgbaston, Birmingham B15 2TT, UK | +--------------------------------------------------------------------+