How to Use D's ImportC Compiler in a Program
Dejan Lekic
dejan.lekic at gmail.com
Tue Oct 7 17:00:51 UTC 2025
On Monday, 6 October 2025 at 15:20:06 UTC, David T. Oxygen wrote:
> I once found that D has a ImportC compiler. It can compile C
> code.
> How to use it?
> I tried `dmd hello.c` but it didn't work. Instead,it did
> nothing,and even didn't give me an error message.
> I thought the compiler was broken but when I compile a normal D
> file it can work.
> I've also tried `dmd a.d b.c` and of course it didn't work too.
>
> Who knows why? I'm waiting for your answer.
Which D compiler, and version?
More information about the Digitalmars-d-learn
mailing list