Re: [Fwd: Antonio Carlos Moretti <[email protected]>]
Reginald Beardsley <[email protected]>
| Newsgroups | gmane.comp.gnu.glpk |
|---|---|
| Message-ID | <[email protected]> |
Most FORTRAN compilers add a trailing underscore to the names. On AIX it will add 2 by default IIRC, but you can tell the compiler to just add one.
CALL FOO( A )
-------------------------------------------
void foo_ ( float* *a ){
}
---------------------------------------------
There is a short post I wrote 25 years ago floating around on the Internet. It's appended to this:
www.personal.psu.edu/jhm/f90/lambert-f2c.pdf
At the time I was writing code that called C from FORTRAN which built tables of function pointers which called FORTRAN routines on 6 flavors of Unix. Might seem like a lot of trouble, but it got me a 6x speedup on a user defined FORTRAN internal read. All my work was with F77, so I can't say about F9X and beyond.
Reg
--------------------------------------------
On Sat, 3/10/18, Andrew Makhorin <[email protected]> wrote:
Subject: [Help-glpk] [Fwd: Antonio Carlos Moretti <[email protected]>]
To: [email protected]
Date: Saturday, March 10, 2018, 10:10 PM
-------- Forwarded Message --------
From: Antonio Carlos Moretti
<moretti+dated
[email protected]>
To: [email protected]
Subject:
Date: Sat, 10 Mar 2018 11:38:24 -0300
Hello,
Is there any way to call glpk from a
fortran program?
Thanks for the help,
Antonio
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk