User forums > General (but related to Code::Blocks)
How to create wxWidgets program for Windows 32 bit using codeblocks-20.03mingw?
stahta01:
--- Quote from: stahta01 on April 18, 2020, 04:11:31 am ---I will try it and see if it works for me; I consider it unlikely to work.
Tim S.
--- End quote ---
It was able to build the wxWidgets library; but, it could not build the minimal sample.
It was missing the 32 bit "msvcrt". Edit: This was just the last of many libraries it said it could not find.
Tim S.
stahta01:
32 bit build command used
--- Code: ---mingw32-make -f makefile.gcc CC="gcc -m32" CXX="g++ -m32" WINDRES="windres --use-temp-file -F pe-i386" CXXFLAGS+="-fno-keep-inline-dllexport -std=gnu++11" COMPILER_VERSION=810 MONOLITHIC=0 SHARED=0 UNICODE=1 BUILD=release
--- End code ---
64 bit build command
--- Code: ---mingw32-make -f makefile.gcc CXXFLAGS+="-fno-keep-inline-dllexport -std=gnu++11" COMPILER_VERSION=810_x64 MONOLITHIC=0 SHARED=0 UNICODE=1 BUILD=release
--- End code ---
Tim S.
tumanovalex:
Thank you very much, I will try. I will inform you of the results. I am a novice user of CodeBlocks and wxWidgets, so it will take me some time to get the result.
tumanovalex:
I decided to check first the possibility of creating a console application for 32 and 64 bits. For 64 bits, everything works well, programs are created with static linking, which run without errors on Windows 64 bits. Installed in the settings project m32, gnu ++ 11. I got the same errors as in the application with wxWidgets. Please tell me how to configure a console project through the project settings (Project Build) in order to create a version for 32 bits.
sodev:
AFAIK the Mingw-w64 toolchains are not multilib, you need a complete toolchain for each architecture. I assume the package contains only one toolchain, the one CodeBlocks was build itself with, so this would be the 64 bit toolchain which cannot build 32 bit. You need to install the 32 bit toolchain yourself and point CodeBlocks to use that one to build for 32 bit.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version