diff --git a/src/libnptm/clu_subs.cpp b/src/libnptm/clu_subs.cpp
index 937ac24d4c512133c1d6c224fd9f675a9698a9a0..770dd522356f93eec4586a247335765d9611b0db 100644
--- a/src/libnptm/clu_subs.cpp
+++ b/src/libnptm/clu_subs.cpp
@@ -9,6 +9,10 @@
 #include "../include/types.h"
 #endif
 
+#ifndef INCLUDE_LOGGING_H_
+#include "../include/logging.h"
+#endif
+
 #ifndef INCLUDE_CONFIGURATION_H_
 #include "../include/Configuration.h"
 #endif
diff --git a/src/libnptm/sph_subs.cpp b/src/libnptm/sph_subs.cpp
index ec130527737499311537c3eea4264b9927220c98..cfc72312a08aa3b4f6ae8161c9a11ef2676e76f8 100644
--- a/src/libnptm/sph_subs.cpp
+++ b/src/libnptm/sph_subs.cpp
@@ -8,6 +8,10 @@
 #include "../include/types.h"
 #endif
 
+#ifndef INCLUDE_LOGGING_H_
+#include "../include/logging.h"
+#endif
+
 #ifndef INCLUDE_CONFIGURATION_H_
 #include "../include/Configuration.h"
 #endif
diff --git a/src/libnptm/tra_subs.cpp b/src/libnptm/tra_subs.cpp
index 74b8f1b642e51558775b2eb81ec7a94d0eec3ed3..6a708d409ebaf49a876e66b1e9be6b28c2992289 100644
--- a/src/libnptm/tra_subs.cpp
+++ b/src/libnptm/tra_subs.cpp
@@ -11,6 +11,10 @@
 #include "../include/types.h"
 #endif
 
+#ifndef INCLUDE_LOGGING_H_
+#include "../include/logging.h"
+#endif
+
 #ifndef INCLUDE_CONFIGURATION_H_
 #include "../include/Configuration.h"
 #endif
diff --git a/src/trapping/cfrfme.cpp b/src/trapping/cfrfme.cpp
index 2a66e7d8b42f044afa700149f80a5c768773dc48..eb26b6c0b634cf50c75acb097d74116708e0ed8d 100644
--- a/src/trapping/cfrfme.cpp
+++ b/src/trapping/cfrfme.cpp
@@ -18,6 +18,10 @@
 #include "../include/Parsers.h"
 #endif
 
+#ifndef INCLUDE_LOGGING_H_
+#include "../include/logging.h"
+#endif
+
 #ifndef INCLUDE_CONFIGURATION_H_
 #include "../include/Configuration.h"
 #endif
diff --git a/src/trapping/clffft.cpp b/src/trapping/clffft.cpp
index 6e794cf79fe4d09b1574631660b529edc6a3a239..4107563a8d566fb3a2ecd8ee0c9ee0e7216d362e 100644
--- a/src/trapping/clffft.cpp
+++ b/src/trapping/clffft.cpp
@@ -18,6 +18,10 @@
 #include "../include/Parsers.h"
 #endif
 
+#ifndef INCLUDE_LOGGING_H_
+#include "../include/logging.h"
+#endif
+
 #ifndef INCLUDE_CONFIGURATION_H_
 #include "../include/Configuration.h"
 #endif