Using Gcc on Win32 and Connecting to msvcrt.dll

I know Microsoft recommends not to reference the msvcrt.dll file, so please spare me this warning. They do this all the time in their software (like WinDbg) and they won't make any changes since all VC6 applications are linked to msvcrt.dll.

Linking to msvcrt.dll has several advantages. Small executable and easy deployment: msvcrt has been around since win98 started and I don't need to bind multiple MB C sessions to my installer.

Now, is it possible to use gcc to link the C library again in msvcrt.dll instead of glibc? If so, how?

Thank!

+2


source to share


1 answer


AFAIK MinGW port for gcc binds your program to msvcrt.dll.



+6


source







All Articles