D Newbie Trying to Use D with Major C Libraries

Tom Browder via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu May 15 18:31:05 PDT 2014


On Thu, May 15, 2014 at 8:24 PM, Craig Dillabaugh via
Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> wrote:
> On Friday, 16 May 2014 at 01:16:46 UTC, Craig Dillabaugh wrote:
>> On Thursday, 15 May 2014 at 22:25:47 UTC, Tom Browder via
>> Digitalmars-d-learn wrote:
...
>>> What I have not seen yet is the exact way to build a D program which
>>> uses D bindings and its matching C library.  I have just created a
>>> Cookbook page on the D Wiki where I show my first attempt for a real
>>> GNU Makefile as an example for the project.  The page link is here:
>>>
>>>  http://wiki.dlang.org/Using_C_libraries_for_a_D_program
>>>
>>> I would appreciate it if an experienced D user would correct that
>>> recipe so it should compile the desired binary source correctly
>>> (assuming no errors in the  input files).
...
>> Sadly, I lack the expertise to give you much advice.  I did read through
>> your Wiki posting though.  One thing that came to mind was you used GMake.
>> Perhaps you should consider using DUB.  For example here is the DUB config
>> file for one of my library bindings (in my case I used a static library
>> though):
...
Thanks, Craig, I'll look into dub.

Best regards,

-Tom


More information about the Digitalmars-d-learn mailing list