home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12298 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!munnari.oz.au!manuel!msokcf!markus
  3. From: markus@msokcf.anu.edu.au (Markus Buchhorn)
  4. Subject: C Libraries (PLPlot) and Fortran code
  5. Message-ID: <1992Aug14.032053.1639@newshost.anu.edu.au>
  6. Sender: news@newshost.anu.edu.au
  7. Organization: Mt Stromlo and Siding Spring Observatories, Canberra, Australia
  8. Date: Fri, 14 Aug 92 03:20:53 GMT
  9. Lines: 21
  10.  
  11.  
  12. [Posting for a friend sans net.access]
  13.  
  14. Question: How does one use C Libraries (compiled C code) from within
  15. a Fortran program ? In specific, how can one use the PLPlot library from
  16. Fortran ? I have a large quantity of Fortran code, which I'm not interested
  17. in porting to C at this stage. According to the Fortran manual, there are
  18. a variety of ways to go: use the amiga(OpenLibrary) call, which yields
  19. a pointer to the jump table, use the F77L linker to link it in, or 
  20. (briefly discussed in the manual) generate assembly code, and use
  21. some other linker to combine this with the C library.
  22. Unfortunately: amiga(OpenLibrary) refuses to open it, the linker refuses
  23. to link it (not Fortran format), and I can't find how to link
  24. the F77 generated assembly with the PLPlot library. HELP ! please !
  25.  
  26. Any help greatly appreciated
  27.  
  28. Thank You
  29.  
  30. markus
  31.  
  32.