home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!mcsun!news.funet.fi!tut!jaaksi
- From: jaaksi@cs.tut.fi (Jaaksi Ari)
- Subject: Fortran subroutine in C main (2)
- Message-ID: <JAAKSI.92Aug18192406@korppi.cs.tut.fi>
- Sender: usenet@funet.fi (#Kotilo NEWS system )
- Nntp-Posting-Host: cs.tut.fi
- Organization: Tampere Univ. of Technology, Finland.
- Distribution: comp.lang.fortran
- Date: Tue, 18 Aug 1992 17:24:06 GMT
- Lines: 29
-
-
- Hi!
-
- How to use Fortran subroutines called from C main. Everything
- else seems to be OK except when some IO -routines occur in
- Fortran subroutines. F.ex. I've got a Fortran module that writes
- a file and it works fine when called from Fortran main program.
- When I try to call it from C, I get error messages like
-
- Error: _IO_Open undefined
-
- Error: _IO_Write_List_Seq undefined
-
- *** Error code 2
-
- Stop.
-
- at the time I try to link my .o files. If I remove all my IO-things
- I don't get any error messages and as I said all goes fine!
-
- Is there any way to handle these problems.
-
- I use Stardent 3000 computer, TitanOS UNIX Release 4.1 and it's
- compilers Fortran 77 (fc) and C (cc).
-
- All kind of info is more than welcome.
-
- Ari Jaaksi
- --
-