Creating fortran shared library

Creating fortran shared library

I have some fortran routines that I'd like to call from C. I'm having trouble finding how to create a shared libarary and how to link to that library from C.

using Redhat Linux 7.3 Intel Fortran 7.0

2 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

You might like to check the thread from anuraag in this forum. Then, see the Fortran User's Guide, "Libraries" and "Mixing C and Fortran" sections, and also the man pages for ld for how to use -shared to create a shared object.

Martyn

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen