MinGW - cross compilation tool - latest version?

On the MinGW Download Page page, you can download the “MinGW Build Tool Cross-Hosting”, which is a shell script to create the “MinGW Cross-Compiler” so that you can compile your programs on “Linux” with the goal of “Windows”.

I downloaded this script, ran it, and answered the interactive questions the script asked me. I had to download files from which one name is " gcc-core ". And the “latest” version of the “gcc-core source code” that I found on this page was “gcc-core- 3.4.5 -20060117-2-src.tar.gz” - so version 3.4.5 .

But on "Ubuntu Linux" I can download the pre-compiled package "mingw32", which has the version " 4.2.1 ". How is it possible that the version of the "Ubuntu package" MinGW is newer than the version from the MinGW main page?

So what is the latest version of the "MinGW Cross Compilation Tool"?

+3
source share
1 answer

In cross-compiling, you need to create an instrumentation binding to the platform for which you want to create executable code, which means that you can do this without a script. You will only need GCC sources (in this case).

, , GCC 4.4 , configure, make make install.

i686 Windows:

./configure --target=i686-mingw32 --host=$CHOST --build=$CHOST \
--prefix=/usr --enable-languages=fortran,c,c++ --enable-sjlj-exceptions \
--enable-hash-synchronization --disable-nls --disable-libssp --disable-shared
+2

Source: https://habr.com/ru/post/1717933/


All Articles