After some troubles building with clang-cl, I get a stack-fault on a simple command like rtl_433.exe -h.
Since MSVC's cl is not supported it seems. But I do use MSVC' link.
The culprit is the huge r_device devices[] array on stack in main().
Linking with -stack:20000000 fixes it ( bytes!!). The default stack-size is 2MByte AFAIK.
After some troubles building with clang-cl, I get a stack-fault on a simple command like
rtl_433.exe -h
. Since MSVC's cl is not supported it seems. But I do use MSVC' link.The culprit is the huge
r_device devices[]
array on stack inmain()
.Linking with
-stack:20000000
fixes it ( bytes!!). The default stack-size is 2MByte AFAIK.So, can this be done differently?