Compile and link C/C++ libs automatically

Robert M. Münch robert.muench at saphirion.com
Thu Dec 3 09:10:53 UTC 2020


On 3 Dec 2020 at 06:08:55 CET, "RSY" <rsy_881 at gmail.com> wrote:

> However, one feature that is making me very jealous was the 
> ability to compile c/c++ code and automatically link the lib, and 
> cache all that
> 
> This made working with C libraries MUCH easier ...
> Now imagine such feature, with DUB

Go make it even simpler and IMO that's the way to go:

// <myinclude.>
Import "C"

And now use all your C functions and structs, etc.

That's the way to go. No extra tool, no pre-step conversion, no fiddling
around with separate files.

Just simple, straight import and you are done.

-- 
Robert M. Münch
http://www.saphirion.com
smarter | better | faster




More information about the Digitalmars-d mailing list