home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!munnari.oz.au!manuel!msokcf!markus
- From: markus@msokcf.anu.edu.au (Markus Buchhorn)
- Subject: C Libraries (PLPlot) and Fortran code
- Message-ID: <1992Aug14.032053.1639@newshost.anu.edu.au>
- Sender: news@newshost.anu.edu.au
- Organization: Mt Stromlo and Siding Spring Observatories, Canberra, Australia
- Date: Fri, 14 Aug 92 03:20:53 GMT
- Lines: 21
-
-
- [Posting for a friend sans net.access]
-
- Question: How does one use C Libraries (compiled C code) from within
- a Fortran program ? In specific, how can one use the PLPlot library from
- Fortran ? I have a large quantity of Fortran code, which I'm not interested
- in porting to C at this stage. According to the Fortran manual, there are
- a variety of ways to go: use the amiga(OpenLibrary) call, which yields
- a pointer to the jump table, use the F77L linker to link it in, or
- (briefly discussed in the manual) generate assembly code, and use
- some other linker to combine this with the C library.
- Unfortunately: amiga(OpenLibrary) refuses to open it, the linker refuses
- to link it (not Fortran format), and I can't find how to link
- the F77 generated assembly with the PLPlot library. HELP ! please !
-
- Any help greatly appreciated
-
- Thank You
-
- markus
-
-