[gecode-users] Compile errors while installing GECODE 1.3.1

reg at michalfilippi.net reg at michalfilippi.net
Fri May 26 11:07:06 CEST 2017


Hi,
for my student work I need to work with CPSP tool which requires GECODE 
in version 1.3.

But I'm having a hard time installing this older version. Every time I 
run 'make' command I get two groups of errors.

First group contains several instances of shadowing variable. These 
errors I was able to fix by simply renaming one of the variables.
Example of one instance:

./gecode/int/count.hh:243:32: error: declaration of ‘bool shr’
      BaseView(Space* home, bool shr, BaseView& p);

./gecode/int/count.hh:231:43: error:  shadows template parm ‘bool shr’
    template <class VX, class VY, class VZ, bool shr>

Second group of errors contains calling of undefined function.

./gecode/int/count/view.icc: In instantiation of ‘static 
Gecode::ExecStatus Gecode::Int::Count::EqView<VX, VY, VZ, 
shr>::post(Gecode::Space*, Gecode::ViewArray<View>&, VY, VZ, int) [with 
VX = Gecode::Int::IntView; VY = Gecode::Int::ConstIntView; VZ = 
Gecode::Int::IntView; bool shr = true]’:gecode/int/count.cc:108:7:   
required from here
./gecode/int/count/view.icc:127:16: error: ‘sharing’ was not declared in 
this scope, and no declarations were found by argument-dependent lookup 
at the point of instantiation [-fpermissive]
      if (sharing(x,y,z))
./gecode/int/count/view.icc:127:16: note: declarations in dependent base 
‘Gecode::Int::Count::BaseView<Gecode::Int::IntView, 
Gecode::Int::ConstIntView, Gecode::Int::IntView, true>’ are not found by 
unqualified lookup
./gecode/int/count/view.icc:127:16: note: use ‘EqView::sharing’ instead

I have no idea how to fix these errors.

I tried two different version of compiler, g++ 4.6.4 and 5.4.0. Both 
with the exact same result.
I used Ubuntu 16.04.

Thank you in advance for any help.



More information about the users mailing list