User forums > Help
Can a 32-bit versiom u C::B be built on a 64-bit Windows platform
stahta01:
How did you build wxWidgets?
Are you using an 32 bit toolchain that targets 32 bits?
The GCC you posted was 64 bit! Using and 64 bit toolchain to build 32 bit app almost always fails.
--- Code: ---x86_64-w64-mingw32-g++.exe
--- End code ---
Tim S.
Frank_CB:
@stahta01:
Today I just came across a comment on Stackoverflow that stated mingw-w64 couldn't make 32-bit builds, and that mingw32(?) couldn't make 64-bit builds. I thought that I had downloaded a toolchain from Sourceforge that could do both. I thought all I'd have to was change the toolchain executables. Never worked! Tme to re-strategize!
Also, today, I came across a U-Tube video, hosted by a relative of yours, that covered integrating C::B into Msys2. Can Msys2 handle both the 32-bit and the 64-bit versions of C::B on Windows?
Regards
stahta01:
--- Quote from: Frank_CB on September 02, 2022, 02:57:17 am ---@stahta01:
Today I just came across a comment on Stackoverflow that stated mingw-w64 couldn't make 32-bit builds, and that mingw32(?) couldn't make 64-bit builds. I thought that I had downloaded a toolchain from Sourceforge that could do both. I thought all I'd have to was change the toolchain executables. Never worked! Tme to re-strategize!
Also, today, I came across a U-Tube video, hosted by a relative of yours, that covered integrating C::B into Msys2. Can Msys2 handle both the 32-bit and the 64-bit versions of C::B on Windows?
Regards
--- End quote ---
mingw.org does not have 64 bit builds as far as I know.
MinGW64 has either 64 or 32 bit builds. In theory they can have one build that supports both; but, I have never found one that runs under windows.
MSys2 has both 32 bit and 64 bit builds of MinGW64; you have to use the correct prompt for either one.
Tim S.
Frank_CB:
@stahta01:
I'll look into MSYS2.
OSDN. SOURCEFORGE and MinGW now use a different approach to installing MinGW.
Thanks for the information.
Regards
sodev:
You are mixing up some terms here, i'll try to clear some things up.
There is MinGW(32) and MinGW-w64, these are names of projects that supply GNU toolchains for windows. The former is the original project, the latter is a fork or at least based on the former project and considered to be the more current and up-to-date variant. Other than that, these projects are not connected and especially their names are totally unrelated to 32 Bit or 64 Bit builds.
A GNU toolchain CAN be multilib, this means by using the cli arguments -m32 or -m64 it can build 32 Bit or 64 Bit. However, the GNU toolchains of these two projects are NOT multilib. Instead, these projects supply "singlelib" toolchains for each architecture. So to build for a specific architecture you have to use the proper toolchain (what i am not sure is in what architecture these toolchains themself are build, e.g. is the 32 Bit toolchain a 32 Bit application and runs on a 32 Bit OS or is it 64 Bit and requires a 64 Bit OS to run).
This is also true for MSYS2, it bundles multiple toolchains and you have to specify which one to use when you start a shell.
Navigation
[0] Message Index
[*] Previous page
Go to full version