Used version 13139 of C::B using GCC 12.3
The Build Log:
-------------- Build: Debug in Tut0r1 (compiler: GCC Compiler)---------------
g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -g -D__WXDEBUG__ -IC:\wxWidgets-3.2.1\include -IC:\wxWidgets-3.2.1\lib\gcc_dll\mswd -c C:\Sandbox1\Tut0r1\wx_pch.h -o wx_pch.h.gch\Debug_wx_pch_h_gch
windres.exe -IC:\wxWidgets-3.2.1\include -IC:\wxWidgets-3.2.1\lib\gcc_dll\mswd -J rc -O coff -i C:\Sandbox1\Tut0r1\resource.rc -o obj\Debug\resource.res
In file included from C:\wxWidgets-3.2.1\include/wx/defs.h:45,
from C:\wxWidgets-3.2.1\include/wx/wxprec.h:12,
from ./wx_pch.h:14,
from <command-line>:
C:\wxWidgets-3.2.1\include/wx/platform.h:159:10: fatal error: wx/setup.h: No such file or directory
159 | #include "wx/setup.h"
| ^~~~~~~~~~~~
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Will try the Last Nightly.
this :
C:\wxWidgets-3.2.1\include/wx/platform.h:159:10: fatal error: wx/setup.h: No such file or directory
159 | #include "wx/setup.h"
| ^~~~~~~~~~~~
suggest that the path to this setup.h is not set correctly.
This file is normaly built when you build your wxWidgets dll and is located in C:\wxWidgets-3.2.1\lib\gcc_dll\mswu\wx (for a non debuging, unicode wxWidgets build).
So, include C:\wxWidgets-3.2.1\lib\gcc_dll\mswu in your compiler search path.
For a debuging, unicode wxWidgets, maybe it's mswud and not mswd...
Note that thiis setup.h is moreless a copy of the generic setup.h found in C:\wxWidgets-3.2.1\include\wx\msw, but adapted to your specific generated library.