Re: Fortran functions? - Mailing list pgsql-general

From Tom Lane
Subject Re: Fortran functions?
Date
Msg-id 10701.1026876658@sss.pgh.pa.us
Whole thread Raw
In response to Fortran functions?  (Lamar Owen <lamar.owen@wgcr.org>)
List pgsql-general
Lamar Owen <lamar.owen@wgcr.org> writes:
> Has anyone here successfully used Fortran functions in PostgreSQL
> using g77 as the compiler?

No ... but g77 is supposed to produce C-compatible object code as long
as the Fortran isn't too oddball.  I've called g77 Fortran code from C
myself.  (Not sure what you're supposed to do if the Fortran code wants
to pass parameters through unnamed COMMON blocks, or other weirdnesses
:-()

I'd bet you could make it work with at most a thin layer of C wrapper
code.  Are you running into any specific problems?

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: OIDs (Or: another RTFM question?)
Next
From: Steve Lane
Date:
Subject: Logging SQL queries?