Windows version (static, dynamic) with new frd.c compiled in mingw64:
Windows version (static, dynamic) with new frd.c compiled in ucrt64 (for performance comparison):
" 2022-10-29 - Changing the default environment from MINGW64 to UCRT64
About 1.5 years ago we started adding a new variant of the MINGW64 environment called UCRT64, which uses the Universal CRT instead of the old msvcrt.dll. Now that all our packages are available in this new environment and a very large percentage of our users (~97%) are on a system that includes UCRT, we recommend it as the default environment instead of MINGW64.
The MINGW32/64 environments will continue to exist and there are no plans to remove them, but we will focus our attention more on UCRT64 and the other UCRT-using environments such as CLANG64 and CLANGARM64."
Did you keep that code outside the function body? I find that Mingw-w64 won’t compile when it’s there but only if it’s moved inside CalculiXstep() and main().
No doubt it works anywhere on UCRT64 because it’s now #if’d out.