[gecode-users] Gist - linking error

Yannick Parmentier yannick.parmentier at univ-orleans.fr
Wed Nov 11 20:12:51 CET 2009


Thanks Christian for your answer.

I did not have any libgecodegist. I just recompiled gecode using the flag --enable-gist and, as you suggested, making sure that libqt was installed.
Now I can link against libgecodegist and use Gist.

Thanks again,

Yannick


On Wed, Nov 11, 2009 at 06:37:59PM +0100, Christian Schulte wrote:
> Please read how to link your program: like all other libraries you already
> link against (-lgecodeint, ...) you also have to link against libgecodegist
> (-lgecodegist).
> 
> If the problem pertains - as your message suggests - did you actually build
> the Gist library? Do you have the required Qt libraries installed?
> 
> Christian
> 
> --
> Christian Schulte, www.ict.kth.se/~cschulte/
> 
> 
> -----Original Message-----
> From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
> Of Yannick Parmentier
> Sent: Wednesday, November 11, 2009 6:24 PM
> To: users at gecode.org
> Subject: [gecode-users] Gist - linking error
> 
> 
> 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::d
> fs(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
> 
> 
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users
> 
> 

-- 
Yannick Parmentier

--------------------------------------------
tel: +33 2 38 41 72 68 (LIFO)
     +33 2 38 49 25 98 (IUT)
www: http://sourcesup.cru.fr/tulipa/yannick
--------------------------------------------




More information about the gecode-users mailing list