编译时,显示错误指向control.h:DECLARE_DYNAMIC_CLASS_NO_COPY(wxContro)
并显示错误原因:
D:\wxWidgets-3.0.2\include\wx\msw\control.h|132|error: 'wxControl::wxControl(const wxControl&)' is private|
D:\wxWidgets-3.0.2\include\wx\defs.h|3482|note: in definition of macro 'wxDECLARE_NO_COPY_CLASS'|
D:\wxWidgets-3.0.2\include\wx\object.h|228|note: in expansion of macro 'wxDECLARE_DYNAMIC_CLASS_NO_COPY'|
D:\wxWidgets-3.0.2\include\wx\msw\control.h|132|note: in expansion of macro 'DECLARE_DYNAMIC_CLASS_NO_COPY'|
D:\wxWidgets-3.0.2\include\wx\ribbon\control.h|24|error: within this context|
D:\wxWidgets-3.0.2\include\wx\ribbon\bar.h|101|note: synthesized method 'wxRibbonControl::wxRibbonControl(const wxRibbonControl&)' first required here |
E:\za\1212\NewPanel.cpp||In constructor 'NewPanel::NewPanel(wxWindow*, wxWindowID, const wxPoint&, const wxSize&)':|
E:\za\1212\NewPanel.cpp|37|note: synthesized method 'wxRibbonBar::wxRibbonBar(const wxRibbonBar&)' first required here |
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
并显示错误原因:
D:\wxWidgets-3.0.2\include\wx\msw\control.h|132|error: 'wxControl::wxControl(const wxControl&)' is private|
D:\wxWidgets-3.0.2\include\wx\defs.h|3482|note: in definition of macro 'wxDECLARE_NO_COPY_CLASS'|
D:\wxWidgets-3.0.2\include\wx\object.h|228|note: in expansion of macro 'wxDECLARE_DYNAMIC_CLASS_NO_COPY'|
D:\wxWidgets-3.0.2\include\wx\msw\control.h|132|note: in expansion of macro 'DECLARE_DYNAMIC_CLASS_NO_COPY'|
D:\wxWidgets-3.0.2\include\wx\ribbon\control.h|24|error: within this context|
D:\wxWidgets-3.0.2\include\wx\ribbon\bar.h|101|note: synthesized method 'wxRibbonControl::wxRibbonControl(const wxRibbonControl&)' first required here |
E:\za\1212\NewPanel.cpp||In constructor 'NewPanel::NewPanel(wxWindow*, wxWindowID, const wxPoint&, const wxSize&)':|
E:\za\1212\NewPanel.cpp|37|note: synthesized method 'wxRibbonBar::wxRibbonBar(const wxRibbonBar&)' first required here |
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
