[gecode-users] problems in the compilation - gecode 2.2.0

Jonathan Almache Montoya levitax00 at gmail.com
Mon Sep 20 08:01:36 CEST 2010


Hello everyone
I have problems in the compilation of the examples with gecode 2.2.0
I'm using Ubuntu 9.10 , g++-4.3 and gcc-4.3
I have verified and there's a folder named lib in /usr/local/ and other
named include...

the command used into gecode folder is:
g++ -I/usr/local/include -c ./examples/all-interval.cc

output:

./examples/all-interval.cc:63: error: expected class-name before ‘{’ token
./examples/all-interval.cc:66: error: ‘IntVarArray’ does not name a type
./examples/all-interval.cc:69: error: expected ‘,’ or ‘...’ before ‘&’ token
./examples/all-interval.cc:69: error: ISO C++ forbids declaration of
‘SizeOptions’ with no type
./examples/all-interval.cc:98: error: ISO C++ forbids declaration of ‘Space’
with no type
./examples/all-interval.cc:98: error: ‘Space’ declared as a ‘virtual’ field
./examples/all-interval.cc:98: error: expected ‘;’ before ‘*’ token
./examples/all-interval.cc:103: error: expected `;' before ‘virtual’
./examples/all-interval.cc: In constructor ‘AllInterval::AllInterval(int)’:
./examples/all-interval.cc:70: error: class ‘AllInterval’ does not have any
field named ‘x’
./examples/all-interval.cc:70: error: ‘opt’ was not declared in this scope
./examples/all-interval.cc:71: error: ‘x’ was not declared in this scope
./examples/all-interval.cc:73: error: ‘IntVarArgs’ was not declared in this
scope
./examples/all-interval.cc:73: error: expected `;' before ‘d’
./examples/all-interval.cc:77: error: ‘d’ was not declared in this scope
./examples/all-interval.cc:77: error: ‘minus’ was not declared in this scope
./examples/all-interval.cc:80: error: ‘d’ was not declared in this scope
./examples/all-interval.cc:80: error: ‘dom’ was not declared in this scope
./examples/all-interval.cc:82: error: ‘distinct’ was not declared in this
scope
./examples/all-interval.cc:86: error: ‘IRT_LE’ was not declared in this
scope
./examples/all-interval.cc:86: error: ‘rel’ was not declared in this scope
./examples/all-interval.cc:88: error: ‘IRT_GR’ was not declared in this
scope
./examples/all-interval.cc:90: error: ‘INT_VAR_SIZE_MIN’ was not declared in
this scope
./examples/all-interval.cc:90: error: ‘INT_VAL_SPLIT_MIN’ was not declared
in this scope
./examples/all-interval.cc:90: error: ‘branch’ was not declared in this
scope
./examples/all-interval.cc: In constructor ‘AllInterval::AllInterval(bool,
AllInterval&)’:
./examples/all-interval.cc:94: error: class ‘AllInterval’ does not have any
field named ‘Example’
./examples/all-interval.cc:95: error: ‘x’ was not declared in this scope
./examples/all-interval.cc:95: error: ‘class AllInterval’ has no member
named ‘x’
./examples/all-interval.cc: In member function ‘virtual void
AllInterval::print(std::ostream&)’:
./examples/all-interval.cc:105: error: ‘x’ was not declared in this scope
./examples/all-interval.cc: In function ‘int main(int, char**)’:
./examples/all-interval.cc:119: error: ‘SizeOptions’ was not declared in
this scope
./examples/all-interval.cc:119: error: expected `;' before ‘opt’
./examples/all-interval.cc:120: error: ‘opt’ was not declared in this scope
./examples/all-interval.cc:122: error: ‘ICL_BND’ was not declared in this
scope
./examples/all-interval.cc:128: error: ‘Example’ has not been declared
./examples/all-interval.cc:128: error: expected primary-expression before
‘,’ token
./examples/all-interval.cc:128: error: ‘DFS’ was not declared in this scope

Thanks !!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20100920/c815ae9c/attachment.htm>


More information about the users mailing list