diff --git a/src/message.h b/src/message.h
index 957037613234c0c6a3387730791f77fbe093ad51..b04fccb24f4abdbdb320d66f0fc735e53e0bff0c 100644
--- a/src/message.h
+++ b/src/message.h
@@ -5,6 +5,8 @@
 #ifndef PROJECT_MESSAGE_H
 #define PROJECT_MESSAGE_H
 
+#include <cassert>
+
 #define MSG_INFO(str) std::cout << "INFO: " << str << std::endl;
 #define MSG_DEBUG(str) assert(std::cerr << "DEBUG:" << str << std::endl);