From: Yang Zhang <yanghatespam@gm...> - 2009-10-14 07:09:13
I'm using MinGW for building Windows apps on (x86) Linux, and I know
that I need to use a mingw.org-provided GNU toolchain for this, but
I'm curious as to why.
http://www.mingw.org/wiki/MinGW positions MinGW as primarily a set of
headers and import libraries, which makes sense to me, since the
headers provide C declarations of the Windows API functions that
programs use and the import libraries provide linking information for
these functions. However, what is the difference between the standard
Linux gcc (to take an example GNU toolchain tool) and the mingw one?
Is it just the ability to produce portable executable (PE) binaries
instead of ELFs?
By the way, do these headers and import libraries just from the Windows SDK?
Thanks for helping me resolve my curiosity!