home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / fortran / 3082 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.1 KB  |  42 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!mcsun!news.funet.fi!tut!jaaksi
  3. From: jaaksi@cs.tut.fi (Jaaksi Ari)
  4. Subject: Fortran subroutine in C main (2)
  5. Message-ID: <JAAKSI.92Aug18192406@korppi.cs.tut.fi>
  6. Sender: usenet@funet.fi (#Kotilo NEWS system )
  7. Nntp-Posting-Host: cs.tut.fi
  8. Organization: Tampere Univ. of Technology, Finland.
  9. Distribution: comp.lang.fortran
  10. Date: Tue, 18 Aug 1992 17:24:06 GMT
  11. Lines: 29
  12.  
  13.  
  14. Hi!
  15.  
  16. How to use Fortran subroutines called from C main. Everything
  17. else seems to be OK except when some IO -routines occur in
  18. Fortran subroutines. F.ex. I've got a Fortran module that writes
  19. a file and it works fine when called from Fortran main program. 
  20. When I try to call it from C, I get error messages like
  21.  
  22.     Error: _IO_Open undefined
  23.  
  24.     Error: _IO_Write_List_Seq undefined
  25.  
  26.     *** Error code 2
  27.  
  28.     Stop.
  29.  
  30. at the time I try to link my .o files. If I remove all my IO-things
  31. I don't get any error messages and as I said all goes fine! 
  32.  
  33. Is there any way to handle these problems.
  34.  
  35. I use Stardent 3000 computer, TitanOS UNIX Release 4.1 and it's 
  36. compilers Fortran 77 (fc) and C (cc).
  37.  
  38. All kind of info is more than welcome.
  39.  
  40. Ari Jaaksi
  41. -- 
  42.