ermig1979 / Simd

C++ image processing and machine learning library with using of SIMD: SSE, AVX, AVX-512, AMX for x86/x64, NEON for ARM.
http://ermig1979.github.io/Simd
MIT License
2.06k stars 412 forks source link

CLang-cl (12.0.0) build problem on Windows 10 64bit #166

Closed ArsMasiuk closed 3 years ago

ArsMasiuk commented 3 years ago

lines like #include <Simd/SimdDefs.h> lead to bunch of compiler errors:

In file included from C:\Work\Test\End.Expert.V2.Clang\Code\ExtLibs_Include\simd-4.8.103\Simd/SimdMemory.h:29: In file included from C:\Work\Test\End.Expert.V2.Clang\Code\ExtLibs_Include\simd-4.8.103\Simd/SimdMath.h:29: C:\Work\Test\End.Expert.V2.Clang\Code\ExtLibs_Include\simd-4.8.103\Simd/SimdConst.h(93,32): error: excess elements in vector initializer const __m128i K_ZERO = SIMD_MM_SET1_EPI8(0); ^~~~~~~~ C:\Work\Test\End.Expert.V2.Clang\Code\ExtLibs_Include\simd-4.8.103\Simd/SimdInit.h(104,40): note: expanded from macro 'SIMD_MM_SET1_EPI8' {SIMD_AS_CHAR(a), SIMD_AS_CHAR(a), SIMD_AS_CHAR(a), SIMD_AS_CHAR(a), \ ^~~~~~~ C:\Work\Test\End.Expert.V2.Clang\Code\ExtLibs_Include\simd-4.8.103\Simd/SimdInit.h(38,25): note: expanded from macro 'SIMD_AS_CHAR'

define SIMD_AS_CHAR(a) char(a)

                    ^~~~~~~

In file included from ..\CSimdRgbToGrayProcessorComp.cpp:1: In file included from ......\Include\qsimd/CSimdRgbToGrayProcessorComp.h:14: In file included from C:\Work\Test\End.Expert.V2.Clang\Code\ExtLibs_Include\simd-4.8.103\Simd/SimdMemory.h:29: In file included from C:\Work\Test\End.Expert.V2.Clang\Code\ExtLibs_Include\simd-4.8.103\Simd/SimdMath.h:29: C:\Work\Test\End.Expert.V2.Clang\Code\ExtLibs_Include\simd-4.8.103\Simd/SimdConst.h(94,36): error: excess elements in vector initializer const __m128i K_INV_ZERO = SIMD_MM_SET1_EPI8(0xFF); ^~~~~~~ C:\Work\Test\End.Expert.V2.Clang\Code\ExtLibs_Include\simd-4.8.103\Simd/SimdInit.h(104,40): note: expanded from macro 'SIMD_MM_SET1_EPI8' {SIMD_AS_CHAR(a), SIMD_AS_CHAR(a), SIMD_AS_CHAR(a), SIMD_AS_CHAR(a), \ ^~~~~~~ C:\Work\Test\End.Expert.V2.Clang\Code\ExtLibs_Include\simd-4.8.103\Simd/SimdInit.h(38,25): note: expanded from macro 'SIMD_AS_CHAR'

define SIMD_AS_CHAR(a) char(a)

                    ^~~~~~~
ermig1979 commented 3 years ago

Thank you for bug report! I think that fixed this error, but I need independent confirmation. Could you check?