[gecode-users] Gist - linking error
Yannick Parmentier
yannick.parmentier at univ-orleans.fr
Wed Nov 11 18:23:41 CET 2009
Hi all,
I am trying to use Gist (in stand alone mode) to explore the search tree of my CSP, but unfortunately, I cannot get it to work.
Without Gist, the CSP is solved as expected.
I just added:
#include <gecode/gist.hh>
and then called Gist::dfs on my Space object.
When I compile, I get:
c++ RCG.cc -o RCG -lgecodeint -lgecodeset -lgecodesearch
/tmp/cc7peTxn.o: In function `Gecode::Gist::dfs(Gecode::Space*, Gecode::Gist::Options const&)':
RCG.cc:(.text._ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE[Gecode::Gist::dfs(Gecode::Space*, Gecode::Gist::Options const&)]+0x1c): undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool, Gecode::Gist::Options const&)'
/tmp/cc7peTxn.o: In function `RCG::doSearch(RCG*)':
RCG.cc:(.text._ZN3RCG8doSearchEPS_[RCG::doSearch(RCG*)]+0x3a): undefined reference to `Gecode::Gist::Options::def'
collect2: ld returned 1 exit status
make: *** [RCG] Error 1
I tried to link against any gecode library, the result remains the same.
Cheers,
Yannick
More information about the gecode-users
mailing list