On 7/9/2013 20:42, Baruch Burstein wrote: > My understanding was always that mingw, as opposed to Cygwin, didn't supply > a CRT, but instead used the Windows CRT. I never gave this a second thought > until recently, and am now very confused.
Partially correct, mingw does have a CRT for supplementing C standard libs, eg C99 compliant printf. For most part, yes it is forwarded from MS's msvcrt.dll C runtime. win32 api calls are entirely from MS, eg those in kernel32 and advapi32. > > Static libraries compiled with the VS compiler (I think toolchain is the > correct term?) cannot be used with mingw compiler as far as I know. So when > I compile with mingw and a static CRT, which CRT is it using? It can't be > using the Windows CRT, since it is a static library from a different > compiler. So does mingw actually supply a CRT? And if so, when I compile > with a dynamic CRT, why is there no dependency on some mingwCRT.dll? Or is > there? Or does mingw supply a static CRT, but use the Windows CRT for > dynamic CRT? Or am I missing some critical knowledge about what CRTs are > without which this whole paragraph makes no sense? I am confused. > It does, but only as a supplement to msvcrt.dll, and it is almost always linked statically. There is no such dll, the supplement is in libmingwex, C startup code in libmingw32 etc. > All the above is assuming mingw and mingw-w4 are the same in this respect. > Again, my understanding is that the difference between them is just that > mingw-w64 uses newer versions of gcc and binutils and stuff. Am I wrong > again? > mingw-w64 was initially developed to support 64bit porting efforts, it was supposed to be a short lived effort, merging into mingw soon. Merge talks broke down due to some disagreements. mingw-w64 today is a bit more modern than regular mingw, mostly because it allows non-public domain contributions, eg Wine LGPL contributions and from ReactOS.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
