home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 12994 < prev    next >
Encoding:
Text File  |  1992-08-27  |  733 b   |  22 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!uunet.ca!ohgpu!rallan
  3. From: Rob.E.Allan@hydro.on.ca (Rob E. Allan)
  4. Subject: calling fortran subroutine from C++ (on suns)
  5. Message-ID: <1992Aug27.153616.11836@ohgpu.hydro.on.ca>
  6. Sender: rallan@ohgpu.hydro.on.ca (Rob E. Allan)
  7. Reply-To: Rob.E.Allan@hydro.on.ca
  8. Organization: Ontario Hydro
  9. Date: Thu, 27 Aug 1992 15:36:16 GMT
  10. Lines: 10
  11.  
  12. I am running sun C++ 2.1 and sun Fortran 1.4 on a sparcstation.
  13. I am trying to call a fortran subroutine from C++. The
  14. linker complains that it can't find the fortran subroutine.
  15. This works fine in C. I call the fortran subroutine junk
  16. by the call < _junk(val1,val2) > and everything works fine.
  17.  
  18. Thanks for any help.
  19.  
  20.  
  21. rob    email:rob.e.allan@hydro.on.ca
  22.