Creating fortran shared library

Creating fortran shared library

Imagen de 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

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.
Imagen de 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.


Inicie sesión para dejar un comentario.