Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: PS Hatton <P.S.Hatton@bham.ac.uk>
Cc: P.S.Hatton@bham.ac.uk
Subject: Calling FORTRAN from cxx
Date: 1996/06/13	[thread overview]
Message-ID: <31C01EAC.41C6@bham.ac.uk> (raw)


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    |
+--------------------------------------------------------------------+



             reply	other threads:[~1996-06-13  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-13  4:00 PS Hatton [this message]
1996-06-17  4:00 ` Calling FORTRAN from cxx Steve Lionel
1996-06-19  4:00 ` PS Hatton
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox