This line of code cannot be compiled under x86_64-w64-mingw32-gcc 12.1.0
Error message
x86_64-w64-mingw32-gcc -m64 -o build/dl_utils.o -g -O2 -Werror -std=c99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE -DF2C_AUTODETECTION -DCBLAS_DIVERGENCE_AUTODETECTION -DCOMPLEX_RETSTYLE_AUTODETECTION -c dl_utils.c
In file included from /usr/x86_64-w64-mingw32/include/minwindef.h:163,
from /usr/x86_64-w64-mingw32/include/windef.h:9,
from /usr/x86_64-w64-mingw32/include/windows.h:69,
from libblastrampoline_internal.h:18,
from dl_utils.c:1:
dl_utils.c: In function 'throw_dl_error':
dl_utils.c:6:24: error: initialization of 'LPWSTR' {aka 'short unsigned int *'} from incompatible pointer type 'char *' [-Werror=incompatible-pointer-types]
6 | LPWSTR wmsg = TEXT("");
| ^~
cc1: all warnings being treated as errors
This line of code cannot be compiled under x86_64-w64-mingw32-gcc 12.1.0 Error message
gcc version: