Interfacing SQLite with DLang is very easy - why?
Mike Parker
aldacron at gmail.com
Mon Sep 2 02:04:59 UTC 2024
On Sunday, 1 September 2024 at 16:18:47 UTC, Selim Ozel wrote:
>
> I am still scratching my head about how I did this and if I
> made any mistakes because it feels quite un-natural to be able
> to link together an output compiled by gcc with dmd. If someone
> could please explain how & why this works, I'd greatly
> appreciate it!
>
D has been ABI compatible with C from the beginning. It uses the
same object file formats and the same linkers that C compilers
use. The earliest D users, at a time when there were no D
libraries, could write their programs in D and incorporate the
existing C ecosystem. A lot of the modules people shared back
then were just bindings to C libraries.
More information about the Digitalmars-d-announce
mailing list