On Wednesday, 8 March 2017 at 18:21:35 UTC, Damien Gibson wrote:
On Wednesday, 8 March 2017 at 06:28:47 UTC, Jerry wrote:
You have to use "export" for any symbol to be visible from a
dll. On Windows by default nothing is exported.
Would "export" and "export extern(D):" not be the same? Im
confuseled..
They are independent.
"export" simply tells compiler/linker to make symbol public(i.e.
available for dynamic loading from lib), note that on *nix
systems all symbols are public by default.
"extern" thing controls symbol name mangling and calling
conventions(yes, it has no meaning for data)