On 10/15/2012 8:21 AM, Ruben Van Boxem wrote:


2012/10/15 niXman <[email protected] <mailto:[email protected]>>

    > which I've downloaded:
    >
    
http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.7.2/64-bit/threads-win32/sjlj/x64-4.7.2-release-win32-sjlj-rev0.7z/download

    This is a 64-bit MinGW.


    > What am I missing?

    You can not run 64-bit executables on 32-bot OS.


But you can use my 32-bit to 64-bit compiler to build them. You shouldn't suggest to use a 64-bit hosted toolchain to build on a 32-bit platform. Your naming is confusing: the "win32" seems mightily wrong.

To answer the original question: when GCC is built as a cross-compiler, say from i686-w64-mingw32 (32-bit native windows) to x86_64-w64-mingw32 (64-bit native Windows), it automatically adds the target triplet prefix 'x86_64-w64-mingw32-" to all compiler programs. Same for binutils, and gdb for that matter.

If you wish you can rename them to not have the prefix, but this will in the best case cause some configure scripts (from GNU autotools) to malfunction as the requested applications might not be found.

Also: a cross-compiler puts its GCC runtime DLLs in mingw??/*-w64-mingw32/lib, and these are the DLLs that applications built with the compiler will need unless you specify "-static" when linking. For a fully native compiler (say 32-bit Windows to 32-bit Windows), these DLLs are located in mingw??/bin instead.

One more slightly different alternative would be to try your luck with TDM-GCC: <http://tdm-gcc.tdragon.net/>. It's a curious beast host-wise -- although it thinks it's a native x64 toolchain, the executables are actually 32-bit and it should be able to run on 32-bit Windows without any problems (at least, I've never had any reports to the contrary). There are a few other differences from other "vanilla" GCC distributions -- just make sure you check out the README if you end up using it.

-John E. / TDM
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to