Creating fortran shared library

Creating fortran shared library

Bild des Benutzers paige386


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.
Bild des Benutzers Martyn Corden (Intel)

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

Melden Sie sich an, um einen Kommentar zu hinterlassen.