How to Use D's ImportC Compiler in a Program
Emmanuel
emmankoko519 at gmail.com
Mon Oct 6 17:10:36 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.
Hi,
can you show what's in your hello.c file ??
Thanks.
More information about the Digitalmars-d-learn
mailing list