AttachConsole has not been declared AttachConsole has not been declared powershell powershell

AttachConsole has not been declared


Insert

#ifndef WINVER    #define WINVER 0x0603#endif#ifndef _WIN32_WINNT    #define _WIN32_WINNT 0x0603#endif#ifndef _WIN32_IE    #define _WIN32_IE 0x0700#endif

before

#include <_mingw.h>

in include/wx/msw/gccpriv.h. (This applies some of this GitHub pull request to wxWidgets 3.1.0 as distributed. The next wxWidgets release, whether 3.1.1 or 3.2.0, should resolve this issue.)