And, the reason you can not move the wx_pch.h to an common folder is what?
Or did you not try that?
The wx_pch.h determines the PCH file locations in 2 of the 3 settings.
Note: PCH means pre-complied header is this case called wx_pch.h.gch
Oh, Yes, you are right, I haven't thought to move the wx_pch.h to a common file. Thanks.
Note: I do not use the header wx_pch.h file myself so not sure what it contains.
I use the <wx/wxprec.h> directly.
wx_pch.h file do nothing except
include <wx/wxprec.h>.
That's the work by code::blocks's wizard.
using the <wx/wxprec.h> directly can really save OP's problem, that's because the PCH output file will be located in wx/.....
Thanks for your informative suggestion.