Need to include stdexcept
diff --git a/ndn-cpp/encoding/BinaryXMLDecoder.hpp b/ndn-cpp/encoding/BinaryXMLDecoder.hpp
index 7ccfbd4..a02e753 100644
--- a/ndn-cpp/encoding/BinaryXMLDecoder.hpp
+++ b/ndn-cpp/encoding/BinaryXMLDecoder.hpp
@@ -6,6 +6,7 @@
 #ifndef NDN_BINARYXMLDECODER_HPP
 #define	NDN_BINARYXMLDECODER_HPP
 
+#include <stdexcept>
 #include "../c/errors.h"
 #include "../c/encoding/BinaryXMLDecoder.h"