Simplest way to build a DMD compatible C lib, and how to link using DUB.
hardreset via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Dec 15 12:34:47 PST 2016
On Thursday, 15 December 2016 at 18:30:14 UTC, hardreset wrote:
> On Thursday, 15 December 2016 at 03:47:27 UTC, Mike Parker
> wrote:
>> [1] https://github.com/DerelictOrg/DerelictFT
>
> Thanks, I'm trying the "-m32mscoff" method for now, but I get
> "error LNK2019: unresolved external symbol _FT_Init_FreeType
> referenced...."
>
> I have pragma(lib,**fullpath**) in my freetype.d file, is that
> the correct way?
Never mind, figured it out, I needer to add
"libs": ["libs/freetype27ST"]
to dub.json
More information about the Digitalmars-d-learn
mailing list