Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Creating fortran shared library

paige386
Beginner
655 Views

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
0 Kudos
1 Reply
Martyn_C_Intel
Employee
655 Views
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
0 Kudos
Reply