Hello Novo
There are TDM-GCC 32 and 64 bits. You can install both in different folders (MINGW32 and MINGW64 by default).
I'm using TDM-GCC-64 (64-bit compiler on 64-bit Windows) and trying to compile a 32-bit version of my app.
I'm using the -m32 option with both compiler and linker.
The problem is with the resource compiler. It compiles into 64-bit resources.
windres.exe takes a --target option, which can be one from the list: pe-x86-64 pei-x86-64 pe-bigobj-x86-64 elf64-x86-64 elf64-l1om elf64-k1om pe-i386 pei-i386 elf32-i386 elf64-little elf64-big elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex.
There is no way to pass an option to the resource compiler, and there is only one GCC builder (I believe, TheIDE use to have both 32 and 64 bit builders for GCC).
Is there a way to fix that? I really need MINGW because I need GCC symbol demangling.
TIA
Novo wrote on Wed, 01 April 2015 04:42I'm using TDM-GCC-64 (64-bit compiler on 64-bit Windows) and trying to compile a 32-bit version of my app.
I'm using the -m32 option with both compiler and linker.
The problem is with the resource compiler. It compiles into 64-bit resources.
windres.exe takes a --target option, which can be one from the list: pe-x86-64 pei-x86-64 pe-bigobj-x86-64 elf64-x86-64 elf64-l1om elf64-k1om pe-i386 pei-i386 elf32-i386 elf64-little elf64-big elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex.
There is no way to pass an option to the resource compiler, and there is only one GCC builder (I believe, TheIDE use to have both 32 and 64 bit builders for GCC).
Is there a way to fix that? I really need MINGW because I need GCC symbol demangling.
TIA
Hi,
thanks for the info.
I guess the quick fix and sufficient is to change the build method. I can do that, but it should be relatively easy to do (and I do not want to download/install mingw-tdm right now). If you succeed, please let me know, I will patch trunk. If you have problems, please report as well - I will try to fix it myself ASAP.
On related note, how is mingw-tdm working for you? Which version have you downloaded? I am (for some time now) interested in bundling it with U++ once again....
Mirek
exec << "windres -i " << GetHostPathQ(fn) << ((HasFlag("WIN32"))? " --target=pe-i386 " : "")
Latest nightly build is beta or can it be used without problems?
Excelent Good Job.
I already tested with "2017.1rc1" and it worked perfectly for me to place the icon and version details in the .rc file
I imagine that using the MinGW compiler the executable is compiled in machine language.
And I was seeing some tutorials on the page and I would like to know if a window created as file.lay can be made activate MaximizeBox and MinimizeBox,
since that can only do it from the code directly. And I still do not quite understand how to create several window2.cpp, window3.cpp classes as dialog type windows using layout assistance "window2.lay and window3.lay". These are some details that I do not know yet. I have tried with the examples that appear on the page to create modal windows and it works, but suddenly for large applications, it would be easier to create windows in their own classes and files to make code maintenance more comfortable.
But C ++ I like because the compiled files are created in machine language which supposes a security mayo as opposed to .Net and Java.