[gecode-users] compiling errors
amina kemmar
kemmami at hotmail.com
Wed Aug 12 14:43:15 CEST 2009
Hi,
When i try to compile send-more-money.cpp under LINUX mandriva, i get the following errors :
[amina at localhost modeles]$ g++ -I/usr/local/include/ -c send-more-money.cpp
send-more-money.cpp: In constructor ‘SendMoreMoney::SendMoreMoney()’:
send-more-money.cpp:37: erreur: no matching function for call to
‘Gecode::IntVarArray::IntVarArray(SendMoreMoney&, int, int,
int)’
/usr/local/include/gecode/int/array.icc:114: note: candidats sont:
Gecode::IntVarArray::IntVarArray(Gecode::Space*, int, const
Gecode::IntSet&)
/usr/local/include/gecode/int/array.icc:101: note:
Gecode::IntVarArray::IntVarArray(Gecode::Space*, int, int,
int)
/usr/local/include/gecode/int/array.icc:234: note:
Gecode::IntVarArray::IntVarArray(const
Gecode::IntVarArray&)
/usr/local/include/gecode/int/array.icc:230: note:
Gecode::IntVarArray::IntVarArray(Gecode::Space*,
int)
/usr/local/include/gecode/int/array.icc:227: note:
Gecode::IntVarArray::IntVarArray()
send-more-money.cpp:40: erreur: no matching function for call to
‘rel(SendMoreMoney&, Gecode::IntVar&, Gecode::IntRelType,
int)’
/usr/local/include/gecode/int.hh:343: note: candidats sont: void
Gecode::rel(Gecode::Space*, Gecode::IntVar, Gecode::IntRelType,
Gecode::IntVar,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:347: note: void
Gecode::rel(Gecode::Space*, Gecode::IntVar, Gecode::IntRelType, int,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:355: note: void
Gecode::rel(Gecode::Space*, Gecode::IntVar, Gecode::IntRelType,
Gecode::IntVar, Gecode::BoolVar,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:363: note: void
Gecode::rel(Gecode::Space*, Gecode::IntVar, Gecode::IntRelType, int,
Gecode::BoolVar,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:378: note: void
Gecode::rel(Gecode::Space*, const Gecode::IntVarArgs&,
Gecode::IntRelType, const Gecode::IntVarArgs&,
Gecode::IntConLevel)
send-more-money.cpp:41: erreur: no matching function for call to
‘rel(SendMoreMoney&, Gecode::IntVar&, Gecode::IntRelType,
int)’
/usr/local/include/gecode/int.hh:343: note: candidats sont: void
Gecode::rel(Gecode::Space*, Gecode::IntVar, Gecode::IntRelType,
Gecode::IntVar,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:347: note: void
Gecode::rel(Gecode::Space*, Gecode::IntVar, Gecode::IntRelType, int,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:355: note: void
Gecode::rel(Gecode::Space*, Gecode::IntVar, Gecode::IntRelType,
Gecode::IntVar, Gecode::BoolVar,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:363: note: void
Gecode::rel(Gecode::Space*, Gecode::IntVar, Gecode::IntRelType, int,
Gecode::BoolVar,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:378: note: void
Gecode::rel(Gecode::Space*, const Gecode::IntVarArgs&,
Gecode::IntRelType, const Gecode::IntVarArgs&,
Gecode::IntConLevel)
send-more-money.cpp:42: erreur: no matching function for call to
‘distinct(SendMoreMoney&,
Gecode::IntVarArray&)’
/usr/local/include/gecode/int.hh:467: note: candidats sont: void
Gecode::distinct(Gecode::Space*, const Gecode::IntVarArgs&,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:481: note: void
Gecode::distinct(Gecode::Space*, const Gecode::IntArgs&, const
Gecode::IntVarArgs&,
Gecode::IntConLevel)
send-more-money.cpp:50: erreur: no matching function for call to
‘linear(SendMoreMoney&, Gecode::IntArgs&,
Gecode::IntVarArgs&, Gecode::IntRelType, int)’
/usr/local/include/gecode/int.hh:1259: note: candidats sont: void
Gecode::linear(Gecode::Space*, const Gecode::IntVarArgs&,
Gecode::IntRelType, int,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:1264: note: void
Gecode::linear(Gecode::Space*, const Gecode::IntVarArgs&,
Gecode::IntRelType, Gecode::IntVar,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:1268: note: void
Gecode::linear(Gecode::Space*, const Gecode::IntVarArgs&,
Gecode::IntRelType, int, Gecode::BoolVar,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:1272: note: void
Gecode::linear(Gecode::Space*, const Gecode::IntVarArgs&,
Gecode::IntRelType, Gecode::IntVar, Gecode::BoolVar,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:1281: note: void
Gecode::linear(Gecode::Space*, const Gecode::IntArgs&, const
Gecode::IntVarArgs&, Gecode::IntRelType, int,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:1290: note: void
Gecode::linear(Gecode::Space*, const Gecode::IntArgs&, const
Gecode::IntVarArgs&, Gecode::IntRelType, Gecode::IntVar,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:1299: note: void
Gecode::linear(Gecode::Space*, const Gecode::IntArgs&, const
Gecode::IntVarArgs&, Gecode::IntRelType, int, Gecode::BoolVar,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:1308: note: void
Gecode::linear(Gecode::Space*, const Gecode::IntArgs&, const
Gecode::IntVarArgs&, Gecode::IntRelType, Gecode::IntVar,
Gecode::BoolVar, Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:1314: note: void
Gecode::linear(Gecode::Space*, const Gecode::BoolVarArgs&,
Gecode::IntRelType, int,
Gecode::IntConLevel)
/usr/local/include/gecode/int.hh:1320: note: void
Gecode::linear(Gecode::Space*, const Gecode::BoolVarArgs&,
Gecode::IntRelType, Gecode::IntVar,
Gecode::IntConLevel)
send-more-money.cpp:51: erreur: ‘INT_VAR_SIZE_MIN’ was not declared in
this
scope
send-more-money.cpp:51: erreur: ‘INT_VAL_MIN’ was not declared in this scope
send-more-money.cpp: In constructor ‘SendMoreMoney::SendMoreMoney(bool,
SendMoreMoney&)’:
send-more-money.cpp:54: erreur: no matching function for call to
‘Gecode::IntVarArray::update(SendMoreMoney&, bool&,
Gecode::IntVarArray&)’
/usr/local/include/gecode/kernel/array.icc:462: note: candidats sont:
void Gecode::VarArray<Var>::update(Gecode::Space*, bool,
Gecode::VarArray<Var>&) [with Var = Gecode::IntVar]
/usr/local/include/gecode/int/int-set.icc: In constructor ‘Gecode::IntSet::IntSet(I&) [with I = const Gecode::IntVarArray]’:
send-more-money.cpp:60: instantiated from here
/usr/local/include/gecode/int/int-set.icc:39: erreur: no match for call to ‘(const Gecode::IntVarArray) ()’
send-more-money.cpp:60: instantiated from here
/usr/local/include/gecode/int/int-set.icc:41: erreur: ‘const class Gecode::IntVarArray’ has no member named ‘min’
send-more-money.cpp:60: instantiated from here
/usr/local/include/gecode/int/int-set.icc:41: erreur: ‘const class Gecode::IntVarArray’ has no member named ‘max’
/usr/local/include/gecode/int/int-set.icc:42: erreur: no match for ‘operator++’in ‘++i’
[amina at localhost modeles]$
"send-more-money.cpp" which i used is the same model given in the
documentation "modeling with gecode", i followed all the steps mentionned
in this documentation, can you help me? thanks.
amina.
_________________________________________________________________
Avec Windows Live, vous organisez, retouchez et partagez vos photos.
http://www.microsoft.com/northafrica/windows/windowslive/products/photo-gallery-edit.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20090812/d02578a2/attachment.htm>
More information about the gecode-users
mailing list