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 gi
On Tuesday, 7 October 2025 at 00:56:26 UTC, David T. Oxygen wrote:
[...]
```c
#include
int main(){
printf("Hello World!\n");
return 0;
}
```
Compilable without errors or warnings, when dmd 2.111.0 and
"Visual Studio" 2019 and 2026 are installed under win11.
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
On Sunday, 12 October 2025 at 10:49:33 UTC, David T. Oxygen wrote:
On Wednesday, 8 October 2025 at 02:00:59 UTC, Steven
Schveighoffer wrote:
[...]
--
Thank you for your help,but I still haven't solved my problem.
I reinstalled DMD 2.111.0 today,it's the newest relaese
version. However,the comp
On Wednesday, 8 October 2025 at 02:00:59 UTC, Steven
Schveighoffer wrote:
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.
2.110.1 does not exist. Where did you get this compiler f
On Monday, Oct.6 2025 at 17:10:36 UTC, Emmanuel 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
On 10/6/25 5:56 PM, David T. Oxygen wrote:
> Nothing special.Just a simple Hello-World application.
> ```c
> #include
> int main(){
> printf("Hello World!\n");
> return 0;
> }
> ```
> Just like the example on the D website.
I put that code into hello.c and compiled. Yes, there are some
On Sunday, 12 October 2025 at 10:49:33 UTC, David T. Oxygen wrote:
Thank you for your help,but I still haven't solved my problem.
I reinstalled DMD 2.111.0 today,it's the newest relaese
version. However,the compiler still keep silent when compiling
`dmd hello.c`...(If it can't compile,at last i
On Wednesday, 8 October 2025 at 01:38:03 UTC, David T. Oxygen
wrote:
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 h
I think if it couldn't compile, at last it should warn me. But
sadly, it not. It just did *nothing*.
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 wh
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 wh
12 matches
Mail list logo