User forums > General (but related to Code::Blocks)
multilib mingw-w64 TDM compiler
reckless:
Only use exactly one of these compilers, if you are on a 32 bit windows use the 32 bit version if on 64 bit then both versions are ok to use, but pick one :) and please don't add both to path, it confuses the compilers. If you follow these instructions then no additional flags like -m32 should be needed unless you intend to cross compile 32 bit binaries using the 64 bit compiler.
Yeah its rather confusing and also why i newer used the multilib versions myself, but codeblocks expects a multilib version for development unless you hack around in the xml configuration files (unless that has been changed with newer versions ?).
stahta01:
I find that if I wish to use two different MinGW GCC compilers, it is best to add neither to the system path variable.
Tim S.
gd_on:
OK.
But with "old" TDM versions (4.9.2 or 5.1) this configuration was OK for many years ! No confusion between compilers versions 32/64. May be because TDM add a _64 to specific 64 bits dll version !
gd_on
reckless:
It has nothing to do with the dll suffixes, its because you have two versions of the compilers on PATH with different switches for what to build.
Say for instance that the 32 bit gcc is first on PATH, it will expect flags like -m64 to cross compile a 64 bit binary but does not expect -m32 because its a 32 bit compiler. And the reverse is true for the 64 bit version if that one is first on PATH.
Also TDM newer had multilib compilers for both arch's which i suspect is what is causing confusion.
As a rule of thumb newer mix compilers even if they seem to work, in most cases you end up having something that does not :).
Also it's totally unnessesary since both versions can create both 32 and 64 bit executables.
If you do end up with something depending on say the libwinpthread.dll then you can find both the 32 and 64 bit version's of these dll's in
/mingw32/i686-w64-mingw32/lib (for 32 bit) and /mingw32/i686-w64-mingw32/lib64 (for 64 bit) or in
/mingw64/x86_64-w64-mingw32/lib (for 64 bit) and /mingw64/x86_64-w64-mingw32/lib32 (for 32 bit).
stahta01:
--- Quote from: reckless on September 10, 2017, 02:12:47 pm ---Also TDM never had multilib compilers for both arch's which i suspect is what is causing confusion.
--- End quote ---
The TDM's 32 bit build was always built from mingw.org instead of MinGW64 code base.
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version