C::B svn revision 6906 fails to compile on my gentoo ~amd64 with both wxGTK-2.8.11 and 2.9.1 giving this same error:
cbauibook.cpp: In member function 'void cbAuiNotebook::OnDwellTimerTrigger(wxTimerEvent&)':
cbauibook.cpp:96:9: error: 'wxTheApp' was not declared in this scope
make[3]: *** [cbauibook.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src/sdk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src'
make: *** [all-recursive] Error 1
emake failed
My system: ~amd64, gcc-4.5.2, glibc-2.12.1-r3, wxGTK-2.8.11 and 2.9.1
...Nevertheless, it should be fixed in svn r6907.
jens, thanks for fixing. Now, I have another error:
editorbase.cpp: In member function 'virtual void EditorBase::InitFilename(const wxString&)':
editorbase.cpp:92:5: error: 'ProjectsArray' was not declared in this scope
editorbase.cpp:92:20: error: 'projects' was not declared in this scope
editorbase.cpp:92:66: error: invalid use of incomplete type 'struct ProjectManager'
../../src/include/manager.h:26:7: error: forward declaration of 'struct ProjectManager'
make[3]: *** [editorbase.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src/sdk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src'
make: *** [all-recursive] Error 1
emake failed
Patch needed for NON-PCH Build Under Windows. Tim S.
Index: src/sdk/editorbase.cpp
===================================================================
--- src/sdk/editorbase.cpp (revision 6907)
+++ src/sdk/editorbase.cpp (working copy)
@@ -19,6 +19,7 @@
#include "editormanager.h"
#include "pluginmanager.h"
#include "cbproject.h" // FileTreeData
+ #include "projectmanager.h" // ProjectsArray
#include <wx/wfstream.h>
#endif
Index: src/plugins/contrib/ThreadSearch/ThreadSearchView.cpp
===================================================================
--- src/plugins/contrib/ThreadSearch/ThreadSearchView.cpp (revision 6907)
+++ src/plugins/contrib/ThreadSearch/ThreadSearchView.cpp (working copy)
@@ -17,6 +17,7 @@
#include "cbeditor.h"
#include "configmanager.h"
#include "editorcolourset.h"
+ #include "logmanager.h"
#endif
#include "cbstyledtextctrl.h"
With svn r6909, here comes the next error:
dragscroll.cpp:1844:5: error: 'event' does not name a type
dragscroll.cpp:1846:1: error: expected declaration before '}' token
make[4]: *** [dragscroll.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src/plugins/contrib/dragscroll'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src/plugins/contrib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src'
make: *** [all-recursive] Error 1
emake failed