I have C program I compile with mingw
on Windows. It works fine but requires MSVCRT.DLL
. I want to link that statically (like I can do in Visual Studio). Is this possible?
I tried -static
flag to gcc
and it didn't make any change.
What about C++ program using also standard C++ library?