I'm running into a memory corruption error with the Windows version of MPIR, which shows up in the following minimal test case.
Microsoft (R) C/C++ Optimizing Compiler Version 19.25.28610.4 for x64 Compiled MPIR from the latest github checkout earlier this month with this script: pushd \mpir\msvc\vs19 call msbuild.bat gc DLL x64 Debug call msbuild.bat gc LIB x64 Release popd copy \mpir\dll\x64\Debug\mpir.dll Using this source file as a test case: #include <stdio.h> #include <gmp.h> int main(int argc, const char **argv) { mpz_t x; mpz_init_set_str(x,"123",10); mpz_out_str(stdout,10,x); putchar('\n'); return 0; } Compiling like this: cl /I\mpir /MTd a.cc \mpir\dll\x64\Debug\mpir.lib And running the resulting program, produces correct output, but on exit shows a heap corruption, with an error message in a pop-up window that unknowingly does not allow copy paste, but it's in C:\Program Files (x86)\Windows Kits\10\Source\10.0.18362.0\ucrt\heap\debug_heap.cpp line 996, which is _ASSERTE(__acrt_first_block == header); -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mpir-devel/CAH%2BnB%2Bz__ZF5cZFQGRmwvA2b35Gq%3DFYo5Z%2BukqvQKWKJ7QdDmA%40mail.gmail.com.