On Tuesday, 29 October 2024 at 15:14:24 UTC, DLearner wrote:
On Tuesday, 29 October 2024 at 12:42:49 UTC, Lance Bachmeier wrote:
On Tuesday, 29 October 2024 at 12:23:06 UTC, DLearner wrote:

However, there is still a problem:
```
dmd hello.c
C:\D\dmd2\windows\bin64\..\..\src\druntime\import\importc.h(134): fatal error 
C1034: sal.h: no include path set
Error: C preprocess command cl.exe failed for file hello.c, exit status 2

```

which looks like dmd found cl.exe, but did not supply it with all the data it required.

I don't do much on Windows, so I was having trouble with getting the VS stuff installed correctly. I borrowed this command from the Swift installation guide and everything worked:

```
winget install --id Microsoft.VisualStudio.2022.Community --exact --force --custom "--add Microsoft.VisualStudio.Component.Windows11SDK.22000 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64"
```

Thanks for the idea.
The winget installation completed without issues.
Unfortunately, 'dmd hello.c' produced the same error message as before.

you need to invoke that command inside this windoze stupid thing:

https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell?view=vs-2022
  • ImportC question DLearner via Digitalmars-d-learn
    • Re: ImportC... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: Imp... DLearner via Digitalmars-d-learn
        • Re:... Lance Bachmeier via Digitalmars-d-learn
          • ... DLearner via Digitalmars-d-learn
            • ... ryuukk_ via Digitalmars-d-learn
              • ... DLearner via Digitalmars-d-learn
                • ... Lance Bachmeier via Digitalmars-d-learn
                • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
                • ... Lance Bachmeier via Digitalmars-d-learn
                • ... Dennis via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
    • Re: ImportC... Salih Dincer via Digitalmars-d-learn
      • Re: Imp... DLearner via Digitalmars-d-learn
        • Re:... ryuukk_ via Digitalmars-d-learn
          • ... DLearner via Digitalmars-d-learn

Reply via email to