home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11149 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1004 b 

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!caen!uflorida!kluge!serss0!sumargoh
  2. From: sumargoh@serss0.fiu.edu
  3. Newsgroups: comp.sys.sgi
  4. Subject: Calling a Fortran Subroutine from a C Program
  5. Keywords: Programming
  6. Message-ID: <1722@kluge.fiu.edu>
  7. Date: 22 Jul 92 02:53:45 GMT
  8. Sender: news@kluge.fiu.edu
  9. Reply-To: sumargoh@fiu.edu
  10. Organization: FIU Electrical Engineering Department
  11. Lines: 16
  12.  
  13. Does any of you out there know how to call ForTran subroutine from a C program running on IRIX 3.3.2?
  14. For example, if I write a ForTran 77 program as follows:
  15.  
  16.    SUBROUTINE TEST (TEMP1, TEMP2, N)
  17.    DOUBLE COMPLEX TEMP1, TEMP2
  18.    DIMENSION TEMP1 (N,N), TEMP2 (N)
  19.         :
  20.         :
  21.    RETURN
  22.    END
  23.  
  24. How would I incorporate the above subroutine into my C program?  Do I need to create a header
  25. file for the above subroutine?  What switches do I use to compile the above subroutine (as a
  26. Fortran 77 program) and my C program?
  27.  
  28. Please send you response to sumargoh@fiu.edu.  Thank you very much in advanced.
  29.