I'm trying to compile the chapter two example from http://users.skynet.be/saw/wxtutorial/wxTutorial.html on Linux...
lines 37-47:Code:eric@DataStream:~/code/texteditor$ g++ textframe.cpp texteditorapp.cpp `wx-config --libs` `wx-config --cxxflags` -o texteditor textframe.cpp:44: `END_EVENT_TABLE' was not declared in this scope textframe.cpp:44: syntax error before `void'
This was taken out of the example... Anyone know why it doesn't work?Code:BEGIN_EVENT_TABLE(TextFrame, wxFrame) EVT_MENU(MENU_FILE_OPEN, TextFrame::OnMenuFileOpen) EVT_MENU(MENU_FILE_SAVE, TextFrame::OnMenuFileSave) EVT_MENU(MENU_FILE_QUIT, TextFrame::OnMenuFileQuit) EVT_MENU(MENU_INFO_ABOUT, TextFrame::OnMenuInfoAbout) END_EVENT_TABLE void TextFrame::OnMenuFileOpen(wxCommandEvent &event) { wxLogMessage("File Open Menu Selected"); }



LinkBack URL
About LinkBacks


