diff --git a/common/dialogs/wx_html_report_panel.cpp b/common/dialogs/wx_html_report_panel.cpp
index c654c768a4..4109ff7ebe 100644
--- a/common/dialogs/wx_html_report_panel.cpp
+++ b/common/dialogs/wx_html_report_panel.cpp
@@ -28,6 +28,10 @@
#include
#include
#include
+#include
+#include
+#include
+#include
WX_HTML_REPORT_PANEL::WX_HTML_REPORT_PANEL( wxWindow* parent,
wxWindowID id,
diff --git a/common/dialogs/wx_html_report_panel.h b/common/dialogs/wx_html_report_panel.h
index 66b5c0f3e6..4eb7a356fd 100644
--- a/common/dialogs/wx_html_report_panel.h
+++ b/common/dialogs/wx_html_report_panel.h
@@ -22,13 +22,11 @@
#ifndef __WX_HTML_REPORT_PANEL_H__
#define __WX_HTML_REPORT_PANEL_H__
-#include
#include
#include
#include "wx_html_report_panel_base.h"
-
/**
* A widget for browsing a rich text error/status report. Used in numerous
* dialogs in eeschema and pcbnew. Provides error filtering functionality
diff --git a/common/reporter.cpp b/common/reporter.cpp
index c116572986..ddebbc2688 100644
--- a/common/reporter.cpp
+++ b/common/reporter.cpp
@@ -29,6 +29,9 @@
#include
#include
#include
+#include
+#include
+#include
REPORTER& REPORTER::Report( const char* aText, SEVERITY aSeverity )
{
diff --git a/eeschema/dialogs/dialog_plot_schematic.cpp b/eeschema/dialogs/dialog_plot_schematic.cpp
index c190804771..18ba7e29e9 100644
--- a/eeschema/dialogs/dialog_plot_schematic.cpp
+++ b/eeschema/dialogs/dialog_plot_schematic.cpp
@@ -45,6 +45,7 @@
#include
#include
#include
+#include
// static members (static to remember last state):
diff --git a/pcbnew/dialogs/dialog_board_reannotate.cpp b/pcbnew/dialogs/dialog_board_reannotate.cpp
index 1019fef80a..8bfd5feade 100644
--- a/pcbnew/dialogs/dialog_board_reannotate.cpp
+++ b/pcbnew/dialogs/dialog_board_reannotate.cpp
@@ -37,6 +37,7 @@
#include
#include
#include
+#include
bool SortYFirst;
diff --git a/pcbnew/dialogs/dialog_export_svg.cpp b/pcbnew/dialogs/dialog_export_svg.cpp
index a77a2004ec..9f9c5698bd 100644
--- a/pcbnew/dialogs/dialog_export_svg.cpp
+++ b/pcbnew/dialogs/dialog_export_svg.cpp
@@ -39,6 +39,7 @@
#include
#include
#include
+#include
class DIALOG_EXPORT_SVG : public DIALOG_EXPORT_SVG_BASE
{
diff --git a/pcbnew/dialogs/dialog_netlist.cpp b/pcbnew/dialogs/dialog_netlist.cpp
index 16cecc22d8..dc8a77416e 100644
--- a/pcbnew/dialogs/dialog_netlist.cpp
+++ b/pcbnew/dialogs/dialog_netlist.cpp
@@ -41,6 +41,7 @@
#include
#include
+#include
void PCB_EDIT_FRAME::InstallNetlistFrame()
diff --git a/pcbnew/dialogs/dialog_plot.cpp b/pcbnew/dialogs/dialog_plot.cpp
index e1dcbfe4d7..867186dc97 100644
--- a/pcbnew/dialogs/dialog_plot.cpp
+++ b/pcbnew/dialogs/dialog_plot.cpp
@@ -45,6 +45,9 @@
#include