Simplest way to build a DMD compatible C lib, and how to link using DUB.
Mike Parker via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Dec 15 16:40:07 PST 2016
On Thursday, 15 December 2016 at 20:34:47 UTC, hardreset wrote:
> On Thursday, 15 December 2016 at 18:30:14 UTC, hardreset wrote:
>>
>> 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
The pragma alone should have been enough. Did you get the path
right? At any rate, if you're adding that line to dub.json, then
the pragma is redundant. They both do the same thing.
More information about the Digitalmars-d-learn
mailing list