[gecode-users] Problem compiling Gecode 2.0.0 in PowerPC

Guido Tack tack at ps.uni-sb.de
Fri Feb 15 10:49:37 CET 2008


Mauricio Toro wrote:
> I am trying to compile Gecode 2.0.0 and I also
> tried with Gecode 2.0.1 in a PowerPC G5 Machine
> running Mac OS X 10.4.8 and GCC 4.0.0.
>
> I got this errors:
[...]
> g++ -I. -DNDEBUG -fvisibility=hidden -fPIC -Wextra -Wall -pipe -ggdb  
> -O3 -fno-strict-aliasing -finline-limit=3000 -ffast-math   \
> -c -o gecode/int/distinct.o  gecode/int/distinct.cc
> ./gecode/int/distinct/dom.icc: In member function `bool  
> Gecode 
> ::Int 
> ::Distinct 
> ::DomCtrl 
> < 
> View 
> > 
> ::ViewValGraph 
> ::match 
> (Gecode 
> ::Support::SentinelStack<Gecode::Int::Distinct::ViewNode<View>*>&,  
> Gecode::Int::Distinct::ViewNode<View>*)':
> ./gecode/int/distinct/dom.icc:258: error:  
> 'Gecode::Int::Distinct::DomCtrl<View>::ViewValGraph::count' cannot  
> appear in a constant-expression
> ./gecode/int/distinct/dom.icc:258: error: missing '>' to terminate  
> the template argument list

To me, this looks like a bug in gcc's parser.  It confuses the less- 
than operator with a template argument.  Do you really use gcc 4.0.0?   
The current version that comes with XCode is 4.0.1, and as I use it  
every day, I'm sure it doesn't have this problem.

Cheers,
	Guido

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2436 bytes
Desc: not available
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20080215/7fc7b36d/attachment.bin>


More information about the gecode-users mailing list