rrtoolset-5.0.0 compile error gcc 4.7.1

Nick Hilliard nick at inex.ie
Fri Jul 13 22:24:11 UTC 2012


On 13/07/2012 18:40, Darren Baginski wrote:
> Is there a known fix for that ?

looks like gcc 4.7 is a little more picky. I've pushed a fix for this in
svn - r328.

Nick
-------------- next part --------------
Index: src/irr/cache.hh
===================================================================
--- src/irr/cache.hh	(revision 327)
+++ src/irr/cache.hh	(revision 328)
@@ -48,6 +48,7 @@
 #ifndef CACHE_H
 #define CACHE_H
 
+#include <unistd.h>
 #include "dataset/CacheKey.CacheValue.AVLMap.h"
 
 template <class K, class V>
Index: src/normalform/Stack.hh
===================================================================
--- src/normalform/Stack.hh	(revision 327)
+++ src/normalform/Stack.hh	(revision 328)
@@ -93,7 +93,7 @@
 class BoundedStack : BoundedQueue<TYPE> {
 public:
    BoundedStack(int size) : BoundedQueue<TYPE>(size) {}
-   void push(TYPE elt) { enq(elt); }
+   void push(TYPE elt) { this->enq(elt); }
    TYPE pop() { return this->q[--(this->last)]; }
    int getPosition() { return this->last; }
    void setPosition(int pos) { this->last = pos; }


More information about the irrtoolset mailing list