June 11, 2021

Hi all,

My goal is to modularise my code better.

I think I'd like to make a static library, this will primarily to be used in other D projects.

https://dlang.org/articles/dll-linux.html mentions the GC and linking requirements. I am happy to not use the GC for this library, what is the best way to turn this off for the entire library?

I would like to be able to select a library at link time, libraries with the same interface but different implemenations - to build different versions of my project (e.g. Windows, Linux etc).
It would be useful to understand how in D the best way to this?

Is there a good tutorial or information on the above?

Kind regards,
Mike

June 12, 2021
On Friday, 11 June 2021 at 10:40:27 UTC, Mike Brown wrote:
> https://dlang.org/articles/dll-linux.html mentions the GC and linking requirements. I am happy to not use the GC for this library, what is the best way to turn this off for the entire library?

I think you can add the betterC flag when you build the library.