When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.
-------------- Build: AutoRevision in Code::Blocks (wx2.6) ---------------Target is up to date.-------------- Build: ConsoleRunner in Code::Blocks (wx2.6) ---------------Target is up to date.-------------- Build: tinyXML in Code::Blocks (wx2.6) ---------------Target is up to date.-------------- Build: AngelScript in Code::Blocks (wx2.6) ---------------Target is up to date.-------------- Build: scintilla in Code::Blocks (wx2.6) ---------------Target is up to date.-------------- Build: wxPropertyGrid in Code::Blocks (wx2.6) ---------------Target is up to date.-------------- Build: sdk in Code::Blocks (wx2.6) ---------------Running target pre-build stepstools/autorevision/autorevision +wx +int +t . sdk/autorevision.hTarget is up to date.-------------- Build: wxAUI in Code::Blocks (wx2.6) ---------------Target is up to date.-------------- Build: src in Code::Blocks (wx2.6) ---------------Compiling: src\main.cppsrc\main.cpp: In member function `void MainFrame::OnLanguageCCpp(wxCommandEvent&)':src\main.cpp:2115: error: invalid use of undefined type `struct EditorColorSet'sdk/cbeditor.h:18: error: forward declaration of `struct EditorColorSet'Process terminated with status 1 (0 minutes, 9 seconds)2 errors, 0 warnings
void MainFrame::OnLanguageCCpp(wxCommandEvent& event){ cbEditor* ed = EDMAN()->GetBuiltinActiveEditor(); if (ed) { EditorColorSet* theme = ed->GetColorSet(); // Load the lexer somehow..... }}
Although there is no such code in main.cpp (I assume you 're writing it yourself?), the error you 're getting is very descriptive. Read it again. If you still don't understand what it means, add #include <editorcolorset.h> at the top of the file.
cbEditor* ed = EDMAN()->GetBuiltinActiveEditor(); if (ed) { EditorColorSet* theme; HighlightLanguage lang = theme->GetHighlightLanguage(wxSCI_LEX_NULL); theme->Apply(lang, ed->GetControl()); }
EditorColorSet* theme = ed->GetColorSet();
EditorColorSet is a property of EditorManager.Use this:EditorColorSet* theme = Manager::Get()->GetEditorManager()->GetColorSet();