intel / ARM_NEON_2_x86_SSE

The platform independent header allowing to compile any C/C++ code containing ARM NEON intrinsic functions for x86 target systems using SIMD up to AVX2 intrinsic functions
Other
430 stars 149 forks source link

MinGW compilation error #75

Open pixicoder opened 2 months ago

pixicoder commented 2 months ago

If NEON_2_SSE.h is used with Windows includes, it may produce the following error: assignment of read-only location ‘lane’ ; 9599 | UNREFERENCED_PARAMETER(lane);

because the UNREFERENCED_PARAMETER(P) is already defined as: UNREFERENCED_PARAMETER(P) {(P) = (P);} in winnt.h and ntdef.h

Zvictoria commented 2 months ago

Thanks for reporting, I will fix it in the next update. However never seen this problem with Windows, VS 2010-2022 compilers.

pixicoder commented 2 months ago

Thank you! Maybe this problem only occurs when using mingw, i'm not sure... My compiler is: x86_64-w64-mingw32-gcc (GCC) 10-win32 20210110 Minimum code to reproduce: `#include

include "NEON_2_SSE.h"

int main() { return 0; }`