-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Build] Compiler error when building ONNXRuntime: undeclared identifier STRSAFE_PCNZCH #22158
Comments
@marovira you say "In Windows 11 Pro, I am able to compile with any of the aforementioned prompts." |
Just to clarify:
I will send the |
Please send it from x64 Native Tools Command Prompt for VS 2022. |
Here's the output for
|
@satyajandhyala did you get a chance to see the output? |
Describe the issue
When building ONNXRuntime, I get a series of compiler errors saying that
STRSAFE_PCNZCH
, andSTRSAFE_LPSTR
are not defined. The issue is reproducible in Windows 11 Enterprise, though I am unable to reproduce it in Windows 11 Pro.The compiler error appears in Windows 11 Enterprise regardless of the environment in which it is launched. I can reliably reproduce it in any of the following:
In Windows 11 Pro, I am able to compile with any of the aforementioned prompts.
Note 1: I'm unsure if this is specific to Windows 11 Enterprise, but that is the only OS where I can reproduce this consistently.
Note 2: The build script below is using the latest version of ONNXRuntime (1.19.2) but I can reproduce this as far back as 1.16.3, so the issue is not new.
Urgency
This is blocking me from completing an automated build system necessary for CI scripts.
Target platform
Windows 11 Enterprise
Build script
Error / output
Relevant output:
Full output is available here
Visual Studio Version
Visual Studio Enterprise 2022 17.11.4
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: