Question

I know microsoft recommends against linking to the msvcrt.dll, so please spare me from that warning. They do it all the time in their software (like WinDbg) and they won't introduce breaking changes since all VC6 apps link against msvcrt.dll.

Linking against msvcrt.dll has several benefits. Small executable, easy deployment: msvcrt is there since win98 and I don't have to bundle few MB C runtime with my installer.

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

Thanks!

Was it helpful?

Solution

AFAIK the MinGW port for gcc does link your program to msvcrt.dll.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top