dub, ldc2, MS VS 2015, static c library

dm via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Fri Dec 16 02:03:32 PST 2016


> Solution is to add
> dflags "-O5" "-m64" "-release" "-w" "-L-lmylib"
> in dub.sdl
> And compile with dub build --compiler=ldc2

And of course extern (C++) int myFunc(int, int);




More information about the digitalmars-d-ldc mailing list