On Saturday, 12 November 2022 at 15:08:22 UTC, qua wrote:
On Saturday, 12 November 2022 at 14:57:23 UTC, Adam D Ruppe
wrote:
I still don't think that's been released yet, so if you aren't
on the git master or at least the latest beta build it isn't
going to work. Which dmd version are you running?
I was running 2.098, I have just installed 2.100.2, which does
say that use of #include is not supported.
I have tried too to preprocess hello.c with `gcc -E`, but dmd
is also unable to compile it preprocessed (with errors such as
/usr/include/stdio.h(246): Error: found `__filename` when
expecting `,`
).
Is there any reasonably simple way to compile files such as
this hello.c, or is it not ready yet? I'm not an experienced
programmer, so I mostly want to know if I'm doing something
wrong or if there's an alternative that doesn't require manual
translations from C to D.
You're going to need to use the nightly from here:
https://github.com/dlang/dmd/releases/tag/nightly
While a lot of progress has been made, it's definitely not
finished, so you may still encounter errors here and there.