--- a/pp/oparchive.cpp
+++ b/pp/oparchive.cpp
@@ -9,6 +9,8 @@
  * @author John Levon
  * @author Philippe Elie
  */
+
+#include <cstdlib>
 
 #include <iostream>
 #include <fstream>