Problem with compiling gamma with gcc 3.4

View: New views
2 Messages — Rating Filter:   Alert me  

Problem with compiling gamma with gcc 3.4

by Tomáš Kouba-2 :: Rate this Message:

| View Threaded | Show Only this Message

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


_______________________________________________
Bug-gama mailing list
Bug-gama@...
http://lists.gnu.org/mailman/listinfo/bug-gama

Re: Problem with compiling gamma with gcc 3.4

by Ales Cepek-3 :: Rate this Message:

| View Threaded | Show Only this Message


Thanks for your patch! (the same problem was independently reported by Jan Pytel).

I have updated CVS archive, new version 1.9.06 should come soon

Ales

On Mon, Aug 25, 2008 at 01:29:24PM +0200, Tomas Kouba wrote:

> 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
>
>
> _______________________________________________
> Bug-gama mailing list
> Bug-gama@...
> http://lists.gnu.org/mailman/listinfo/bug-gama


_______________________________________________
Bug-gama mailing list
Bug-gama@...
http://lists.gnu.org/mailman/listinfo/bug-gama