You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build environment:
compiler: MSVC 19.41.34120.
generator: Ninja.
platform: Windows 10.0.19045 amd64.
Windows SDK 10.0.22621 CMAKE_CXX_FLAGS="/arch:AVX2 /W4"
Header from Windows sdk <rpcndr.h> introduced macro small as char alias #define small char
compilation of math_test.cc fails when it reaches a template variable declaration const T small
<path/to/math_test.cc> error C2638: 'T' followed by ‘char’ is illegal (did you forget a ';'?)
(and hundreds of error lines)
This globally apply WIN32_LEAN_AND_MEAN to every file referencing hwy timer
2 Define WIN32_LEAN_AND_MEAN, but in math_test.cc, or a file closer to the beginning of include chain
3 Simply rename the var
The text was updated successfully, but these errors were encountered:
scuzqy
changed the title
Failed to compile with MSVC 19.41.34120 amd64 Window 10.0.22621
Failed to compile with MSVC 19.41.34120 amd64 Windows SDK 10.0.22621
Jan 22, 2025
Build environment:
compiler: MSVC 19.41.34120.
generator: Ninja.
platform: Windows 10.0.19045 amd64.
Windows SDK 10.0.22621
CMAKE_CXX_FLAGS="/arch:AVX2 /W4"
Header from Windows sdk
<rpcndr.h>
introduced macrosmall
aschar
alias#define small char
compilation of math_test.cc fails when it reaches a template variable declaration const T small
Chain of include
"hwy/nanobenchmark.h"
<="hwy/timer.h"
<=<windows.h>
<=....
<=<rpcndr.h>
Possible fixes:
1 In
hwy/timer.h"
change
#include <windows.h>
to
This globally apply
WIN32_LEAN_AND_MEAN
to every file referencing hwy timer2 Define
WIN32_LEAN_AND_MEAN
, but inmath_test.cc
, or a file closer to the beginning of include chain3 Simply rename the var
The text was updated successfully, but these errors were encountered: