wxUSE_BOOKCTRL not defined for wxUSE_AUI
|Reported by:||vid||Owned by:|
wxAuiNotebook requires wxBookCtrlBase. This class is controlled by wxUSE_BOOKCTRL flag, whhich is set automatically in chkconf.h:
/* wxUSE_BOOKCTRL should be only used if any of the controls deriving from it are used */ #ifdef wxUSE_BOOKCTRL # ifdef wxABORT_ON_CONFIG_ERROR # error "wxUSE_BOOKCTRL is defined automatically, don't define it" # else # undef wxUSE_BOOKCTRL # endif #endif #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \ wxUSE_LISTBOOK || \ wxUSE_CHOICEBOOK || \ wxUSE_TOOLBOOK || \ wxUSE_TREEBOOK)
However, if custom wx build doesn't include any of 5 listed controls, but wants to use wxAuiNotebook, this code won't set the wxUSE_BOOKCTRL flag. I suggest adding wxUSE_AUI to the list of flags.