Kernel compilation error with gcc 5.3.0

Issue #58 closed
wrobell created an issue

Compiling Fact++ Kernel with gcc 5.3.0 fails with

In file included from dlDag.h:28:0,
                 from dlDag.cpp:19:
dlVertex.h:447:20: error: ‘std::ostream’ has not been declared
  void Print ( std::ostream& o ) const;

The following patch helps

diff --git a/Kernel/dlDag.h b/Kernel/dlDag.h
index 5743736..5b99ffc 100644
--- a/Kernel/dlDag.h
+++ b/Kernel/dlDag.h
@@ -20,6 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 #define DLDAG_H

 #include <vector>
+#include <fstream>
 #include <cstring>     // strlen

 #include "globaldef.h" // for statistic printed

Comments (1)

  1. Log in to comment