Andrewgaven
Technical User
Hello all, Does anyone know how to create a fortran dynamic library in linux?
On a windows platform my .dll is created by the following procedure
on shell:
$gfortran -c rls2.f90 backward.f90 forward.f90 fzmf.f90 dxfz.f90 hybrid.f90
$dlltool -z hybrid.def --export-all-symbols hybrid.o
$gfortran -shared -mrtd -o hybrid.dll hybrid.o rls2.o backward.o forward.o fzmf.o dxfz.o hybrid.def
On linux "dlltool" doesn't work so i can't create the .def file, does anyone know a equivalent for linux?
Thanks in advance.
On a windows platform my .dll is created by the following procedure
on shell:
$gfortran -c rls2.f90 backward.f90 forward.f90 fzmf.f90 dxfz.f90 hybrid.f90
$dlltool -z hybrid.def --export-all-symbols hybrid.o
$gfortran -shared -mrtd -o hybrid.dll hybrid.o rls2.o backward.o forward.o fzmf.o dxfz.o hybrid.def
On linux "dlltool" doesn't work so i can't create the .def file, does anyone know a equivalent for linux?
Thanks in advance.