dynamic library building and loading

Michael pr at m1xa.com
Wed Sep 26 11:59:24 PDT 2012


On Wednesday, 26 September 2012 at 17:57:29 UTC, Andrei
Alexandrescu wrote:
> Haven't done any dynamic linking with D and I need to. I'm 
> using dmd 2.058/Linux at work to build and use dynamic 
> libraries. Here's my attempt:

Maybe it will help you
D:
https://bitbucket.org/AnyCPU/codewithd/raw/de0a2f0ea1af/symload.d

Fortran:
https://bitbucket.org/AnyCPU/codewithd/raw/de0a2f0ea1af/simple.f95

Dmd 2.060 used.

DLL on OpenSUSE 64bit compiled with command:
gfortran -shared -fPIC -O3 -o simple.so simple.f95



More information about the Digitalmars-d mailing list