Skip to content
dlang shared library testing repository
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
workaround
.gitignore
LICENSE
Makefile
README.md
main.c
main.d
utils.d
worker.d

README.md

dlangsharedlib

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 main
  • make dynamicd - tests shared library dynamically loaded from D main
  • make staticc - tests static linked library called from C main
  • make 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:

You can’t perform that action at this time.