[gecode-users] Compilation problem
Jean-Francois Molderez
jfmolderez at hotmail.com
Thu Oct 12 12:36:42 CEST 2006
hello ,
I am starting with Gecode and I have the following problem when trying to
compile a first example (money.cc)
jfm at pt-jfm:~/gecode/dev> gcc -I ../gecode-1.3.0 -c money.cc
jfm at pt-jfm:~/gecode/dev> gcc -lgecodekernel -lgecodeint -lgecodesearch
money.o -o money
money.o: dans la fonction « main »:
money.cc:(.text+0xbb): référence indéfinie vers « Options::parse(int,
char**)»
money.o: dans la fonction « Gecode::MiniModel::LinRel::post(Gecode::Space*,
bool, Gecode::IntConLevel) const»:
money.cc:(.text._ZNK6Gecode9MiniModel6LinRel4postEPNS_5SpaceEbNS_11IntConLevelE[Gecode::MiniModel::LinRel::post(Gecode::Space*,
bool, Gecode::IntConLevel) const]+0x31): référence indéfinie vers «
Gecode::MiniModel::LinExpr::post(Gecode::Space*, Gecode::IntRelType,
Gecode::IntConLevel) const»
money.cc:(.text._ZNK6Gecode9MiniModel6LinRel4postEPNS_5SpaceEbNS_11IntConLevelE[Gecode::MiniModel::LinRel::post(Gecode::Space*,
bool, Gecode::IntConLevel) const]+0x60): référence indéfinie vers «
Gecode::MiniModel::LinExpr::post(Gecode::Space*, Gecode::IntRelType,
Gecode::IntConLevel) const»
money.o: dans la fonction « Gecode::MiniModel::LinExpr::~LinExpr()»:
money.cc:(.text._ZN6Gecode9MiniModel7LinExprD1Ev[Gecode::MiniModel::LinExpr::~LinExpr()]+0x18):
référence indéfinie vers « Gecode::MiniModel::LinExpr::Node::decrement() »
money.o: dans la fonction « void Example::run<Money, Gecode::DFS>(Options
const&)»:
money.cc:(.text._ZN7Example3runI5MoneyN6Gecode3DFSEEEvRK7Options[void
Example::run<Money, Gecode::DFS>(Options const&)]+0xb78): référence
indéfinie vers « am(double*, int)»
money.cc:(.text._ZN7Example3runI5MoneyN6Gecode3DFSEEEvRK7Options[void
Example::run<Money, Gecode::DFS>(Options const&)]+0xb90): référence
indéfinie vers « dev(double*, int)»
collect2: ld returned 1 exit status
There is a problem to find/link the class Options.
Thak you for any help me to get out of this predicament.
JF Molderez
Cetic/Belgium
_________________________________________________________________
Does your pc move to the speed of a snail? Windows Live safety scanner can
help you! http://safety.live.com/site/nl-be/default.htm
More information about the gecode-users
mailing list