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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Gecode users mailing list
[EMAIL PROTECTED]
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to