On Tuesday, 14 April 2026 at 14:25:29 UTC, DLearner wrote:
This relates to:

```
DMD64 D Compiler v2.112.0
Copyright (C) 1999-2025 by The D Language Foundation, All Rights Reserved written by Walter Bright

```

While trying to compile and run hello.c (ie trying out Import C):

```
#include <stdio.h>
int main()
{
   printf("Hello world.\n");
   return 0;
}

```

I got

```
Error: cl.exe not found. Please ensure that Visual Studio Build Tools are installed and properly configured.
```
despite repeatedly downloading everything I could find relating to Visual Studio 2019.

FWIW, isn't 'cl.exe' MS's _own_ C compiler - I wanted to use the C compiler within DMD.

Ideas?

Usually, Windows Command Prompt does not automatically recognize VS compilers (due to PATH issues). Just run everything in a x64 Native Tools Command Prompt for VS 2019 (or 32 bit).
  • Import C under W... DLearner via Digitalmars-d-learn
    • Re: Import ... Serg Gini via Digitalmars-d-learn
    • Re: Import ... drug007 via Digitalmars-d-learn
    • Re: Import ... Ferhat Kurtulmuş via Digitalmars-d-learn
      • Re: Imp... drug007 via Digitalmars-d-learn
        • Re:... DLearner via Digitalmars-d-learn
          • ... drug007 via Digitalmars-d-learn
            • ... DLearner via Digitalmars-d-learn
              • ... Dennis via Digitalmars-d-learn
                • ... DLearner via Digitalmars-d-learn
                • ... DLearner via Digitalmars-d-learn
                • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
              • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
    • Re: Import ... Michael Reed via Digitalmars-d-learn

Reply via email to