I've just set up wxWidget in codeBlock and the samples work fine.
I want to use in my application wxRichTextControl but initializing such an object returns the following error :
Code: Select all
||=== Build: Debug in test (compiler: GNU GCC Compiler) ===|
/usr/local/include/wx-3.0/wx/control.h|220|error: ‘wxControlBase::wxControlBase(const wxControlBase&)’ is private|
/usr/local/include/wx-3.0/wx/defs.h|3534|note: in definition of macro ‘wxDECLARE_NO_COPY_CLASS’|
/usr/local/include/wx-3.0/wx/gtk/control.h|20|error: within this context|
/usr/local/include/wx-3.0/wx/richtext/richtextctrl.h|214|note: synthesized method ‘wxControl::wxControl(const wxControl&)’ first required here |
/usr/local/include/wx-3.0/wx/textctrl.h|662|error: ‘wxTextCtrlIface::wxTextCtrlIface(const wxTextCtrlIface&)’ is private|
/usr/local/include/wx-3.0/wx/defs.h|3534|note: in definition of macro ‘wxDECLARE_NO_COPY_CLASS’|
/usr/local/include/wx-3.0/wx/richtext/richtextctrl.h|214|error: within this context|
/usr/local/include/wx-3.0/wx/gtk/scrolwin.h|75|error: ‘wxScrollHelper::wxScrollHelper(const wxScrollHelper&)’ is private|
/usr/local/include/wx-3.0/wx/defs.h|3534|note: in definition of macro ‘wxDECLARE_NO_COPY_CLASS’|
/usr/local/include/wx-3.0/wx/richtext/richtextctrl.h|214|error: within this context|
/home/gregoire/Projet/ProjetPerso/PrepSimulator/test/testMain.cpp||In constructor ‘testFrame::testFrame(wxFrame*, const wxString&)’:|
/home/gregoire/Projet/ProjetPerso/PrepSimulator/test/testMain.cpp|59|note: synthesized method ‘wxRichTextCtrl::wxRichTextCtrl(const wxRichTextCtrl&)’ first required here |
/usr/local/include/wx-3.0/wx/richtext/richtextctrl.h|251|note: after user-defined conversion: wxRichTextCtrl::wxRichTextCtrl(wxWindow*, wxWindowID, const wxString&, const wxPoint&, const wxSize&, long int, const wxValidator&, const wxString&)|
||=== Build failed: 6 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
Code: Select all
#ifdef WX_PRECOMP
#include "wx_pch.h"
#endif
#ifdef __BORLANDC__
#pragma hdrstop
#endif //__BORLANDC__
#include "testApp.h"
#include "testMain.h"
IMPLEMENT_APP(testApp);
bool testApp::OnInit()
{
testFrame* frame = new testFrame(0L, _("wxWidgets Application Template"));
//Here is the line I added
[color=#FF0000] wxRichTextCtrl test = 0;[/color]
frame->Show();
return true;
}
Thanks.