[Issue 24308] [ImportC] druntime\import\importc.h(134): fatal error C1034: sal.h: no include path set

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 31 23:46:24 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=24308

Adam Wilson <flyboynw at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |flyboynw at gmail.com

--- Comment #2 from Adam Wilson <flyboynw at gmail.com> ---
This is due to MSFT's [SAL Annotations
Library](https://learn.microsoft.com/en-us/cpp/c-runtime-library/sal-annotations?view=msvc-170)
that they use as metadata. We added this because we need to disable this
anytime an MSFT header gets included by ImportC. 

This should be solved by using the Developer Command Prompt from Visual Studio
as that will correctly setup the %INCLUDE% environment variable. In general,
when using ImportC on Windows you should be invoking DMD from the Dev Prompt
because you're using the whole compiler tool-chain.

--


More information about the Digitalmars-d-bugs mailing list