How to link *.a file on Windows?
kinke via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 22 11:17:39 PDT 2016
On Thursday, 22 September 2016 at 17:09:38 UTC, Brian wrote:
> I use cygwin build a C++ lib file:
>
> libmemcached.a
>
> but, how to link it to my dub project?
You'd probably need to use the GNU linker then, but the D objects
would need to match the format used for your C++ lib. You could
give the GDC compiler a shot, or use clang to compile the C++ lib
to MS COFF format (.lib), which can then be fed to both DMD and
LDC on Windows.
More information about the Digitalmars-d
mailing list