dlang shared library testing repository
This repository is just for testing how to call Dlang library from D or C the "right" way. Main point is to test the interaction with foreign threads and to have some reference how this can be achieved.
See Makefile
for targets, but in short:
make staticd
- tests static linked library called from D mainmake dynamicd
- tests shared library dynamically loaded from D mainmake staticc
- tests static linked library called from C mainmake dynamicc
- tests shared library dynamically loaded from C main
NOTE: Currently these are buggy and unreliable. See workaround
folder for possible workaround, which seems to at least work, but is ugly..
Some resources I've put this together from: