D Newbie Trying to Use D with Major C Libraries

John Colvin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 16 02:19:40 PDT 2014


On Friday, 16 May 2014 at 06:17:47 UTC, Jacob Carlborg wrote:
> 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

Any plans to get any preprocessor stuff working? Presumably 
libclang can make this feasible.


More information about the Digitalmars-d-learn mailing list