Thread overview
[Issue 24111] [ImportC] fatal error C1034: stdio.h: no include path set
Nov 07
Dlang Bot
Nov 16
Dlang Bot
Feb 25
Dlang Bot
Mar 03
Dlang Bot
September 12
https://issues.dlang.org/show_bug.cgi?id=24111

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
I'm a bit puzzled by this. When I open "Developer Command Prompt for VS 2022" from the Start menu, it sets the INCLUDE path appropriately. That entry in the Start menu was generated by the install of VS.

--
September 12
https://issues.dlang.org/show_bug.cgi?id=24111

Richard Cattermole <alphaglosined@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alphaglosined@gmail.com

--- Comment #2 from Richard Cattermole <alphaglosined@gmail.com> ---
The premise of the problem is that you are required to both know of and to ensure the usage of the bat file(s) are applied to make ImportC work isn't acceptable.

Instead of dmd detecting it wasn't applied, and then applied automatically as part of running of the preprocessor.

It's a failure state built into ImportC on Windows. Alternatively, we could get MinGW working as per my email showing a way to make this work and not require this addition.

--
November 06
https://issues.dlang.org/show_bug.cgi?id=24111

--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> ---
I don't really know how dmd can account for failure to install VisualStudio. The error message is coming from VS, not dmd.

--
November 06
https://issues.dlang.org/show_bug.cgi?id=24111

--- Comment #4 from Richard Cattermole <alphaglosined@gmail.com> ---
(In reply to Walter Bright from comment #3)
> I don't really know how dmd can account for failure to install VisualStudio. The error message is coming from VS, not dmd.

Visual Studio is installed.

The PATH variables are not setup, and therefore it appears to the toolchain as though it hasn't been.

"x64 Native Tools Command Prompt for VS 2022.bat", basically dmd needs to detect that bat file and automatically apply it before calling the cpp.

--
November 07
https://issues.dlang.org/show_bug.cgi?id=24111

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
@kinke created dlang/dmd pull request #15780 "VSOptions: Prepare for setting the INCLUDE env var for importC" mentioning this issue:

- VSOptions: Prepare for setting the INCLUDE env var for importC

  Upstreaming from LDC, to pave the way for fixing Issue 24111.

https://github.com/dlang/dmd/pull/15780

--
November 16
https://issues.dlang.org/show_bug.cgi?id=24111

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15780 "VSOptions: Prepare for setting the INCLUDE env var for importC" was merged into master:

- e7bff1cf7a0dd456d333ff399f6095c5898630b4 by Martin Kinkelin:
  VSOptions: Prepare for setting the INCLUDE env var for importC

  Upstreaming from LDC, to pave the way for fixing Issue 24111.

https://github.com/dlang/dmd/pull/15780

--
February 25
https://issues.dlang.org/show_bug.cgi?id=24111

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #7 from Dlang Bot <dlang-bot@dlang.rocks> ---
@shoo created dlang/dmd pull request #16248 "Fix Bugzilla issue 24111 - [ImportC] fatal error C1034: stdio.h: no include path set" fixing this issue:

- Fix Bugzilla issue 24111 - [ImportC] fatal error C1034: stdio.h: no include path set

https://github.com/dlang/dmd/pull/16248

--
March 03
https://issues.dlang.org/show_bug.cgi?id=24111

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #16248 "Fix Bugzilla issue 24111 - [ImportC] fatal error C1034: stdio.h: no include path set" was merged into master:

- dd54f7809e2a3fc7e4e51a999c5b34fc4f2c52da by SHOO:
  Fix Bugzilla issue 24111 - [ImportC] fatal error C1034: stdio.h: no include
path set

https://github.com/dlang/dmd/pull/16248

--