There seems to be a problem with the cppcheck-plugin.
When I start the Cppcheck plugin, a requester pops up:
Failed to launch cppchek.
Do you want to select the cppcheck executable?
But there is no cppcheck.exe, only a cppcheck.dll
The cppcheck-tab says:
cppcheck --version
Failed to launch cppcheck
Patch Needed for NON Pre-compiled Header Build
I added <wx/ffile.h> and <algorithm> outside of guards because they are not in wx or CB list of headers to be pre-compiled.
They are include by accident not by design of pre-compiled headers.
This will likely fix [ Bug #17321 ] Cscope plugin fails to build
http://developer.berlios.de/bugs/?func=detailbug&bug_id=17321&group_id=5358
Tim S.
Index: src/plugins/contrib/DoxyBlocks/DoxyBlocks.cpp
===================================================================
--- src/plugins/contrib/DoxyBlocks/DoxyBlocks.cpp (revision 6379)
+++ src/plugins/contrib/DoxyBlocks/DoxyBlocks.cpp (working copy)
@@ -25,12 +25,15 @@
#include "DoxyBlocks.h"
#ifndef CB_PRECOMP
+ #include <wx/process.h>
#include <wx/xrc/xmlres.h>
#include <configmanager.h>
#include <editormanager.h>
#include <cbeditor.h>
#include <logmanager.h>
#include <projectmanager.h>
+ #include <cbproject.h>
+ #include <macrosmanager.h>
#endif
#include "projectloader_hooks.h"
#include <cbstyledtextctrl.h>
Index: src/plugins/contrib/DoxyBlocks/ExtractDocs.cpp
===================================================================
--- src/plugins/contrib/DoxyBlocks/ExtractDocs.cpp (revision 6379)
+++ src/plugins/contrib/DoxyBlocks/ExtractDocs.cpp (working copy)
@@ -38,7 +38,9 @@
#include "projectfile.h"
#include "cbproject.h"
#include "projectmanager.h"
+ #include "macrosmanager.h"
#endif
+#include <wx/ffile.h>
#include <wx/utils.h>
#include <wx/busyinfo.h>
#include "DoxyBlocks.h"
Index: src/plugins/contrib/Cscope/CscopePlugin.cpp
===================================================================
--- src/plugins/contrib/Cscope/CscopePlugin.cpp (revision 6379)
+++ src/plugins/contrib/Cscope/CscopePlugin.cpp (working copy)
@@ -1,4 +1,14 @@
#include <sdk.h> // Code::Blocks SDK
+#ifndef CB_PRECOMP
+ #include <wx/process.h>
+
+ #include "cbeditor.h"
+ #include "cbproject.h"
+ #include "editormanager.h"
+ #include "logmanager.h"
+ #include "projectmanager.h"
+#endif
+
#include <configurationpanel.h>
#include <cbstyledtextctrl.h>
#include "CscopePlugin.h"
Index: src/plugins/contrib/NassiShneiderman/NassiPlugin.cpp
===================================================================
--- src/plugins/contrib/NassiShneiderman/NassiPlugin.cpp (revision 6379)
+++ src/plugins/contrib/NassiShneiderman/NassiPlugin.cpp (working copy)
@@ -3,6 +3,9 @@
#include <sdk.h> // Code::Blocks SDK
+#ifndef CB_PRECOMP
+ #include <cbeditor.h>
+#endif
#include <configurationpanel.h>
#include <cbstyledtextctrl.h>
#include "NassiPlugin.h"
Index: src/plugins/contrib/EditorTweaks/EditorTweaks.cpp
===================================================================
--- src/plugins/contrib/EditorTweaks/EditorTweaks.cpp (revision 6379)
+++ src/plugins/contrib/EditorTweaks/EditorTweaks.cpp (working copy)
@@ -1,4 +1,5 @@
#include <sdk.h> // Code::Blocks SDK
+#include <algorithm> // std::sort
#include <configurationpanel.h>
#include "EditorTweaks.h"