DStep rocks [was Example of using C API from D?]

Andrea Fontana nospam at example.com
Mon Sep 3 12:45:55 UTC 2018


On Monday, 3 September 2018 at 10:50:17 UTC, Russel Winder wrote:
> Interesting alternative to DStep. I came to D to avoid 
> #include, but… I'll give it a whirl once I can get it compiled 
> on Debian Sid. It seems the libclang-dev package does not 
> install a libclang.so symbolic link, you have to be explicit 
> about which version you want, e.g. libclang- 6.0.so on my 
> Debian Sid installation.

I use dpp to generate d code to import:
- Create a temp.dpp file with #include inside
- Run "d++ --preprocess-only temp.dpp"

Now you have your .d file exactly like in dstep.

Andrea


More information about the Digitalmars-d-learn mailing list