home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sgi / 13589 < prev    next >
Encoding:
Internet Message Format  |  1992-09-13  |  1.1 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!chx400!sicsun!disuns2!/!stoeckli
  2. From: stoeckli@disuns2.epfl.ch (Laurent Stoeckli)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Calling C from fortran
  5. Keywords: C, fortran
  6. Message-ID: <1992Sep14.082334@disuns2.epfl.ch>
  7. Date: 14 Sep 92 06:23:34 GMT
  8. Sender: news@disuns2.epfl.ch
  9. Reply-To: stoeckli@disuns2.epfl.ch (Laurent Stoeckli)
  10. Organization: Ecole Polytechnique Federale de Lausanne
  11. Lines: 17
  12. Nntp-Posting-Host: disun45.epfl.ch
  13.  
  14. Hi everybody ! I need the help of you gurus. I'm trying to call C fonctions 
  15. from a fortran program (which I modify) and I have problem for the link. To
  16. be able to call C functions from fortran I've seen I have to name the C
  17. fonction
  18. downcase and to add an underscore at the end in the C code. 
  19.  
  20. As my application should work on others systems I'd like to know if
  21. there is a way to avoid to put the underscore at the end, so the C
  22. function has the same name as in the fortran code. Maybe there is a
  23. compiler directive to allow this
  24. but I haven't  found it.
  25.  
  26. please answer me at stoeckli@disuns2.epfl.ch
  27.  
  28.     thank you in advance
  29.  
  30.             LS
  31.