I just built a 64-bit version of C::B (12878) from the latest source, without the contributed plugin SpellChecker. It was missing hunspell.h.
However, my attempts at building a 32-bit version of C::B are still failing, no matter which 32-bit compilers or linkers I use.
A snippet of the build log for the last failure follows:x86_64-w64-mingw32-g++.exe -Wall -std=gnu++11 -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DwxUSE_UNICODE -DBUILDING_PLUGIN -iquote.objs32\include -I.objs32\include -I. -IC:\wxWidgets-3.2.0\include -IC:\wxWidgets-3.2.0\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Iinclude\tinyxml -Iinclude -Iinclude\scripting\include -Iexchndl\win32\include -c C:\projectsx32\12878\src\src\watchesdlg.cpp -o .objs32\src\watchesdlg.o
x86_64-w64-mingw32-g++.exe -LC:\wxWidgets-3.2.0\lib\gcc_dll -Ldevel32 -Lexchndl\win32\lib -o devel32\codeblocks.exe .objs32\src\app.o .objs32\src\appglobals.o .objs32\src\associations.o .objs32\src\backtracedlg.o .objs32\src\breakpointsdlg.o .objs32\src\compilersettingsdlg.o .objs32\src\cpuregistersdlg.o .objs32\src\crashhandler.o .objs32\src\debugger_interface_creator.o .objs32\src\debuggermenu.o .objs32\src\debuggersettingscommonpanel.o .objs32\src\debuggersettingsdlg.o .objs32\src\debuggersettingspanel.o .objs32\src\disassemblydlg.o .objs32\src\dlgabout.o .objs32\src\dlgaboutplugin.o .objs32\src\editkeywordsdlg.o .objs32\src\editorconfigurationdlg.o .objs32\src\environmentsettingsdlg.o .objs32\src\examinememorydlg.o .objs32\src\find_replace.o .objs32\src\goto_file.o .objs32\src\infopane.o .objs32\src\main.o .objs32\src\notebookstyles.o .objs32\src\printdlg.o .objs32\src\projectdepsdlg.o .objs32\src\projectmanagerui.o .objs32\src\projectoptionsdlg.o .objs32\src\recentitemslist.o .objs32\src\scriptconsole.o .objs32\src\scriptingsettingsdlg.o .objs32\src\splashscreen.o .objs32\src\startherepage.o .objs32\src\switcherdlg.o .objs32\src\threadsdlg.o .objs32\src\virtualbuildtargetsdlg.o .objs32\src\watchesdlg.o .objs32\src\resources\resources.res -Wl,--enable-auto-import -Wl,--no-undefined -lcodeblocks -lexchndl -lshfolder -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwxmsw32u -mwindows
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible exchndl\win32\lib/libexchndl.a when searching for -lexchndl
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible exchndl\win32\lib\libexchndl.a when searching for -lexchndl
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible exchndl\win32\lib/libexchndl.a when searching for -lexchndl
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lexchndl
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (31 minute(s), 21 second(s))
2 error(s), 31 warning(s) (31 minute(s), 21 second(s))
I've also attached an image of the path and fields that were used for the compiler. No matter what I used for the linker for static libraries, the build fails. The ar.exe used as a linker for static libs is from C:\mingw64\x86_64-w64-mingw32. The ar.exe in C:\mingw64\bin also failed as part of the 32-bit toolchain, but worked in the 64-bit toolchain
If anyone is building 32-bit versions of C::B successfully, I'd appreciate you sharing the toolchain thst your using.
Regards
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.
x86_64-w64-mingw32-g++.exe
Tim S.