[gecode-users] Compile errors while installing GECODE 1.3.1
Christian Schulte
cschulte at kth.se
Fri May 26 16:00:42 CEST 2017
Try to pass -fpermissive as additional compiler flag (make CXXUSR=-fpermissive). The other issue could be fixed by renaming.
The issue comes from the fact the gcc versions are too new: they are now stricter than they used to be. But 1.3.1 is so old, we will not do any fixing there.
Best
Christian
--
Christian Schulte, www.gecode.org/~schulte
Professor of Computer Science, KTH, cschulte at kth.se
Expert Researcher, SICS, cschulte at sics.se
-----Original Message-----
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf Of reg at michalfilippi.net
Sent: Friday, May 26, 2017 11:07
To: users at gecode.org
Subject: [gecode-users] Compile errors while installing GECODE 1.3.1
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.
_______________________________________________
Gecode users mailing list
users at gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users
More information about the users
mailing list