home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!chx400!sicsun!disuns2!/!stoeckli
- From: stoeckli@disuns2.epfl.ch (Laurent Stoeckli)
- Newsgroups: comp.sys.sgi
- Subject: Calling C from fortran
- Keywords: C, fortran
- Message-ID: <1992Sep14.082334@disuns2.epfl.ch>
- Date: 14 Sep 92 06:23:34 GMT
- Sender: news@disuns2.epfl.ch
- Reply-To: stoeckli@disuns2.epfl.ch (Laurent Stoeckli)
- Organization: Ecole Polytechnique Federale de Lausanne
- Lines: 17
- Nntp-Posting-Host: disun45.epfl.ch
-
- Hi everybody ! I need the help of you gurus. I'm trying to call C fonctions
- from a fortran program (which I modify) and I have problem for the link. To
- be able to call C functions from fortran I've seen I have to name the C
- fonction
- downcase and to add an underscore at the end in the C code.
-
- As my application should work on others systems I'd like to know if
- there is a way to avoid to put the underscore at the end, so the C
- function has the same name as in the fortran code. Maybe there is a
- compiler directive to allow this
- but I haven't found it.
-
- please answer me at stoeckli@disuns2.epfl.ch
-
- thank you in advance
-
- LS
-