On Tuesday, 7 October 2025 at 17:00:51 UTC, Dejan Lekic wrote:
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?
--
I used DMD 2.110.1 when compiling. Now I know it should be able
to compile C files.