D Newbie Trying to Use D with Major C Libraries

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu May 15 23:17:47 PDT 2014


On 15/05/14 23:27, Tom Browder via Digitalmars-d-learn wrote:
> I am a volunteer developer with the well-known 3D CAD FOSS project BRL-CAD:
>
>    http://brlcad.org
>
> I have wanted to use D for a long time but I hadn't taken the plunge.
> Yesterday I advertised to the BRL-CAD community my new project to
> attempt to create D bindings for BRL-CAD's C libraries, and I created
> a branch for the project.
>
> I have been looking for specific information on creating D bindings
> from C headers for which there seems to be sufficient information
> available, but I would appreciate recommendations as to the best
> method.

You can use DStep [1] to automatically generate bindings. It requires 
some manual tweaking afterwards but it will give you a good start.

[1] https://github.com/jacob-carlborg/dstep

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list