Problem with compiling gamma with gcc 3.4

Tomas Kouba <[email protected]> Mon, 25 Aug 2008 13:29:24 +0200
Newsgroups gmane.comp.gnu.gama.bugs
Message-ID <[email protected]>
Dear all,

I use opensuse 11 and I have had problem with compiling gnu gamma with
its compiler gcc version 3.4. The include files are less cross referenced
in this version of gcc and so the code must be more explicit in specifying 
headers.

So I propose the following patch which allows gamma to be compiled on opensuse 11:


diff -ru gama.old/lib/gamalib/pointid.cpp gama/lib/gamalib/pointid.cpp
--- gama.old/lib/gamalib/pointid.cpp    2008-08-25 13:12:44.000000000 +0200
+++ gama/lib/gamalib/pointid.cpp        2008-08-25 13:13:02.000000000 +0200
@@ -26,6 +26,7 @@
  */


+#include <stdlib.h>
 #include <gamalib/pointid.h>

 // typedef std::string PointID;
diff -ru gama.old/lib/gnu_gama/adj/envelope.h gama/lib/gnu_gama/adj/envelope.h
--- gama.old/lib/gnu_gama/adj/envelope.h        2008-08-25 13:12:44.000000000 +0200
+++ gama/lib/gnu_gama/adj/envelope.h    2008-08-25 13:13:36.000000000 +0200
@@ -27,6 +27,7 @@
 #define GNU_Gama_Envelope___gnu_gama_envelope___gnugamaenvelope___envelope_h


+#include <limits>
 #include <gnu_gama/sparse/smatrix_graph.h>
 #include <gnu_gama/sparse/smatrix_ordering.h>
 #include <gnu_gama/sparse/sbdiagonal.h>
diff -ru gama.old/lib/gnu_gama/xml/localnetwork.cpp gama/lib/gnu_gama/xml/localnetwork.cpp
--- gama.old/lib/gnu_gama/xml/localnetwork.cpp  2008-08-25 13:12:44.000000000 +0200
+++ gama/lib/gnu_gama/xml/localnetwork.cpp      2008-08-25 13:13:13.000000000 +0200
@@ -24,6 +24,7 @@
  */


+#include <typeinfo>
 #include <vector>
 #include <iomanip>
 #include <cmath>


-- 
Tomas Kouba