home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!caen!uflorida!kluge!serss0!sumargoh
- From: sumargoh@serss0.fiu.edu
- Newsgroups: comp.sys.sgi
- Subject: Calling a Fortran Subroutine from a C Program
- Keywords: Programming
- Message-ID: <1722@kluge.fiu.edu>
- Date: 22 Jul 92 02:53:45 GMT
- Sender: news@kluge.fiu.edu
- Reply-To: sumargoh@fiu.edu
- Organization: FIU Electrical Engineering Department
- Lines: 16
-
- Does any of you out there know how to call ForTran subroutine from a C program running on IRIX 3.3.2?
- For example, if I write a ForTran 77 program as follows:
-
- SUBROUTINE TEST (TEMP1, TEMP2, N)
- DOUBLE COMPLEX TEMP1, TEMP2
- DIMENSION TEMP1 (N,N), TEMP2 (N)
- :
- :
- RETURN
- END
-
- How would I incorporate the above subroutine into my C program? Do I need to create a header
- file for the above subroutine? What switches do I use to compile the above subroutine (as a
- Fortran 77 program) and my C program?
-
- Please send you response to sumargoh@fiu.edu. Thank you very much in advanced.
-