From b220b647d46b458d67ef8a5a36f0fca9d5772f57 Mon Sep 17 00:00:00 2001 From: Evangelos Voyiatzis Date: Fri, 16 Feb 2018 10:49:08 +0100 Subject: [PATCH] Update error.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When compiling with g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18) an error occurs: error.cpp: In member function ‘void Error::generate_error(unsigned int, std::string, std::string)’: error.cpp:146: error: ‘exit’ was not declared in this scope The fix is to include the #include where the exit() function is decleared in the error.cpp file --- tools/pymol_asphere/src/error.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/pymol_asphere/src/error.cpp b/tools/pymol_asphere/src/error.cpp index 0bbd090566..9491ca04a4 100644 --- a/tools/pymol_asphere/src/error.cpp +++ b/tools/pymol_asphere/src/error.cpp @@ -13,7 +13,8 @@ #include "error.h" #include - +#include + Notice::Notice() { nullout=new ostream(NULL); noteout=&cout;