I have a C program that I am compiling using mingw on Windows. It works fine, but requires MSVCRT.DLL . I want to link this statically (as I can do in Visual Studio). Is it possible?
I tried the -static flag before gcc and it made no changes.
What about a C ++ program that also uses the standard C ++ library?
c ++ c dll mingw static-linking
zaharpopov
source share