On Tuesday, 17 January 2023 at 19:17:31 UTC, DLearner wrote:
On Tuesday, 17 January 2023 at 17:36:41 UTC, ryuukk_ wrote:
On Tuesday, 17 January 2023 at 17:12:49 UTC, DLearner wrote:
On Tuesday, 17 January 2023 at 15:55:40 UTC, bachmeier wrote:
[...]

Downloaded latest dmd for windows from website:
```
C:\Users\SoftDev>dmd --version
DMD32 D Compiler v2.101.2-dirty
Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved written by Walter Bright
```

But trial still failed:

```
C:\Users\SoftDev\Documents\BDM\D\ImportC>dmd ex01.c
failed launching cl.exe /P /Zc:preprocessor /PD /nologo ex01.c /FIC:\D\dmd2\windows\bin\..\..\src\druntime\import\importc.h /Fiex01.i Error: C preprocess command cl.exe failed for file ex01.c, exit status 1

```

It works for me

```
C:\Users\ryuukk\tmp>dmd -run ex01.c
hello world
```

Double check your visual studio installation, something is wrong with your install probably

Tried twice - same result.

But VS installation is itself (IMO) not particularly intuitive.
Would it be possible either to cite known working VS installation options on DLang website, or produce Windows installation script that takes such options automatically?

FWIW, now tried a few standard D programs, work fine.
Suggesting VS is not the problem?

Reply via email to