(Now I change to the official 3.2.4 release, headers and libraries) It's the same when I build from the command line.
-------------- Build: Debug in Error (compiler: GNU GCC Compiler)---------------
g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -Wall -g -D__WXDEBUG__ -IW:\Libraries\wxWidgets-3.2.4\include -IW:\Libraries\wxWidgets-3.2.4\lib\gcc_dll\mswud -c W:\Projects\Working\Error\ErrorApp.cpp -o obj\Debug\ErrorApp.o
g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -Wall -g -D__WXDEBUG__ -IW:\Libraries\wxWidgets-3.2.4\include -IW:\Libraries\wxWidgets-3.2.4\lib\gcc_dll\mswud -c W:\Projects\Working\Error\ErrorMain.cpp -o obj\Debug\ErrorMain.o
windres.exe -IW:\Libraries\wxWidgets-3.2.4\include -IW:\Libraries\wxWidgets-3.2.4\lib\gcc_dll\mswud -J rc -O coff -i W:\Projects\Working\Error\resource.rc -o obj\Debug\resource.res
g++.exe -LW:\Libraries\wxWidgets-3.2.4\lib\gcc_dll -o bin\Debug\Error.exe obj\Debug\ErrorApp.o obj\Debug\ErrorMain.o obj\Debug\resource.res -mthreads -lwxmsw32ud_core -lwxbase32ud -mwindows
windres.exe: preprocessing failed.
Process terminated with status 1 (0 minute(s), 6 second(s))
{standard input}: Assembler messages:
{standard input}:33499: Error: junk at end of line, first unrecognized character is `.'
{standard input}:40025: Error: junk at end of line, first unrecognized character is `.'
Process terminated with status 1 (0 minute(s), 10 second(s))
Process terminated with status 0 (0 minute(s), 10 second(s))
3 error(s), 0 warning(s) (0 minute(s), 10 second(s))
Edit:
Now I can successfully build the project with Release configuration, but I can't run the generated program, because it cannot locate program entry point _ZnSt15basic... on libstdc++-6.dll.
(Now I change to the official 3.2.4 release, headers and libraries) It's the same when I build from the command line.
AFAICT, there is no official wxWidgets 3.2.4 binary release using GCC 13.2 (latest being GCC 12.2 from MSYS2)?
Were wxWidgets really built by the same compiler (or a really compatible one) that you are using for your application? If not, there are bound to be build- and run-time issues.
FWIW, wxWidgets 3.2.4 self-built with GCC 13.2 can be used with application built with GCC 13.2, tested several configurations for my guide.
It builds and runs for MSys2 MINGW64; I was surprised.
-------------- Clean: Debug in gcc_mingw64 (compiler: GNU GCC Compiler)---------------
Cleaned "gcc_mingw64 - Debug"
Running project pre-build steps
gcc --version
gcc (Rev3, Built by MSYS2 project) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-------------- Build: Debug in gcc_mingw64 (compiler: GNU GCC Compiler)---------------
g++.exe -pipe -mthreads -Wall -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -g -D__WXDEBUG__ -IH:\devel\wxwidgets_libs\wxMSW-3.2.4_gcc1220_x64_Dev\include -IH:\devel\wxwidgets_libs\wxMSW-3.2.4_gcc1220_x64_Dev\lib\gcc1220_x64_dll\mswud -c H:\devel\wxwidgets_libs\test\gcc12\gcc12App.cpp -o obj\Debug\gcc12App.o
g++.exe -pipe -mthreads -Wall -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -g -D__WXDEBUG__ -IH:\devel\wxwidgets_libs\wxMSW-3.2.4_gcc1220_x64_Dev\include -IH:\devel\wxwidgets_libs\wxMSW-3.2.4_gcc1220_x64_Dev\lib\gcc1220_x64_dll\mswud -c H:\devel\wxwidgets_libs\test\gcc12\gcc12Main.cpp -o obj\Debug\gcc12Main.o
windres.exe -IH:\devel\wxwidgets_libs\wxMSW-3.2.4_gcc1220_x64_Dev\include -IH:\devel\wxwidgets_libs\wxMSW-3.2.4_gcc1220_x64_Dev\lib\gcc_dll\mswud -J rc -O coff -i H:\devel\wxwidgets_libs\test\gcc12\resource.rc -o obj\Debug\resource.res
g++.exe -LH:\devel\wxwidgets_libs\wxMSW-3.2.4_gcc1220_x64_Dev\lib\gcc1220_x64_dll -o bin\Debug\gcc12.exe obj\Debug\gcc12App.o obj\Debug\gcc12Main.o obj\Debug\resource.res -mthreads -lwxmsw32ud_core -lwxbase32ud
H:\devel\wxwidgets_libs\test\gcc12\gcc12Main.cpp: In constructor 'gcc12Dialog::gcc12Dialog(wxDialog*, const wxString&)':
H:\devel\wxwidgets_libs\test\gcc12\gcc12Main.cpp:58:70: warning: 'wxFont::wxFont(int, int, int, int, bool, const wxString&, wxFontEncoding)' is deprecated: use wxFONT{FAMILY,STYLE,WEIGHT}_XXX constants ie: wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD [-Wdeprecated-declarations]
58 | m_staticText1->SetFont(wxFont(20, 74, 90, 90, false, wxT("Arial")));
| ^
In file included from H:\devel\wxwidgets_libs\wxMSW-3.2.4_gcc1220_x64_Dev\include/wx/font.h:627,
from H:\devel\wxwidgets_libs\wxMSW-3.2.4_gcc1220_x64_Dev\include/wx/window.h:23,
from H:\devel\wxwidgets_libs\wxMSW-3.2.4_gcc1220_x64_Dev\include/wx/wx.h:38,
from H:\devel\wxwidgets_libs\test\gcc12\gcc12Main.h:14,
from H:\devel\wxwidgets_libs\test\gcc12\gcc12Main.cpp:14:
H:\devel\wxwidgets_libs\wxMSW-3.2.4_gcc1220_x64_Dev\include/wx/msw/font.h:130:5: note: declared here
130 | wxFont(int size,
| ^~~~~~
Output file is bin\Debug\gcc12.exe with size 1.12 MB
Process terminated with status 0 (0 minute(s), 7 second(s))
0 error(s), 1 warning(s) (0 minute(s), 7 second(s))