https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115907
cqwrteur <unlvsur at live dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |--- Status|RESOLVED |UNCONFIRMED --- Comment #39 from cqwrteur <unlvsur at live dot com> --- > > mingw has nothing to do with things here. it is a cross compiler. It has > > nothing to do with sysroot in mingw. There is no need for sysroot at all. > MINGW is required to build Windows programs, AFAIK (note that I've never > built a Windows program..), at least due to the headers. This implies that > the headers (and probably libraries) need to be in the sysroot of the > to-Windows cross-compiler. This does not seem avoidable. I don't think you understand what you are talking about. The crossback compiler itself does not need to contain any sysroot and headers for mingw-w64. It only needs to contain linux headers and libs. https://github.com/trcrsired/gcc-releases/releases Go and download the compiler itself and try it with wine.