d - Calling gdc/dmd shared libraries from Python using ctypes -


I have recently been playing with the great CTPP library in Python. What I was wondering, is it possible to make the shared D library and call them in the same way; I'm assuming that I have the .so file to - I'll compile using fPIC with dmd or gdc and call them the same way as the ctypes library .

Has anyone tried this? It seems like the shared libraries are partially supported on UNIX .

Many thanks,

al

In this case Windows DLL should work just fine. I'm not sure about the situation on Linux, there are some problems with shared libraries that will be addressed only after the 64-bit port of the DMD is terminated.

Note that you have to export your tasks to Extern (C) or Extern (Windows) to use them from ctypes.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -