See my response regarding improper configuration by omitting wxwidgets property sheet at build-fails-in-release-mode.html
cannot compile in release mode
Bryan Kelly
321
Reputation points
Windows 11, Visual Studio 2019, Program is the wxwidgets example of hello world.
It compiles and runs in debug mode.
Switch to Release and the first line of code immediately has the red squiggles.
Line 03 is
#include <wx/wxprec.h>
The squiggles toggle on and off as the mode is switched between Release and Debug.