I am new to D language. i have a project A. When i executed dub build it has created me libA.so. i am trying to create a different .d file and import this module.
now i wanted to write a D wrapper to consume it.
when i tried
import a
it did not work. i copied the libA.so to the sudo cp libA.so /usr/include/dmd/druntime/import/ but the import did not work.
Can you please help me how can i import this ?
The official documentation for writing and using shared libraries in D on Linux is here:
https://dlang.org/articles/dll-linux.html