How to Use D's ImportC Compiler in a Program
Steven Schveighoffer
schveiguy at gmail.com
Tue Oct 14 02:05:57 UTC 2025
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 it should
> complain,all right? But it did nothing...)
> But if I speak `dmd --version` it will tell me:
> `DMD64 D Compiler v2.111.0
> Copyright (C) 1999-2025 by The D Language Foundation, All
> Rights Reserved written by Walter Bright`
>
> And it can compile a normal D file which doesn't import a C
> file. If the D file imports a C file,the compiler will still
> keep silent...
>
> Oh no that's too bad. I wonder if there may be anything wrong
> with my computer...
Please post the output when running with the -v switch.
-Steve
More information about the Digitalmars-d-learn
mailing list