ARM_NEON_2_x86_SSE icon indicating copy to clipboard operation
ARM_NEON_2_x86_SSE copied to clipboard

MinGW compilation error

Open pixicoder opened this issue 1 year ago • 2 comments

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

pixicoder avatar Sep 03 '24 08:09 pixicoder

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

Zvictoria avatar Sep 06 '24 19:09 Zvictoria

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 <windows.h> #include "NEON_2_SSE.h" int main() { return 0; }

pixicoder avatar Sep 07 '24 07:09 pixicoder