Discussion:
[gecode-users] Installation problem: undefined rerence to Gist
Andrea Sacconi
2018-06-23 17:25:22 UTC
Permalink
Hello,

I have just downloaded the source code of Gecode and I am trying to install it on my Ubuntu 18.04 machine.

Unfortunately, I stumbled on a linking problem related to Gist. Apparently there is a problem with linking such library, but I do not know what to do. I downloaded Qt5 and I thought it would be fine, but that is not the case. Do I have to modify anything with CMake?

Could you please help me?

[ 99%] Linking CXX executable bin/gecode-test
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::dfs(Gecode::Space*, Gecode::Gist::Options const&)':
flatzinc.cpp:(.text._ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE[_ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE]+0x21): undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool, Gecode::Gist::Options const&)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::bab(Gecode::Space*, Gecode::Gist::Options const&)':
flatzinc.cpp:(.text._ZN6Gecode4Gist3babEPNS_5SpaceERKNS0_7OptionsE[_ZN6Gecode4Gist3babEPNS_5SpaceERKNS0_7OptionsE]+0x21): undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool, Gecode::Gist::Options const&)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::~FZPrintingInspector()':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED2Ev[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED5Ev]+0x3d): undefined reference to `Gecode::Gist::Inspector::~Inspector()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED2Ev[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED5Ev]+0x49): undefined reference to `Gecode::Gist::TextOutput::~TextOutput()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::~VarComparator()':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED2Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED5Ev]+0x3d): undefined reference to `Gecode::Gist::Comparator::~Comparator()'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED2Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED5Ev]+0x49): undefined reference to `Gecode::Gist::TextOutput::~TextOutput()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::Inspector::Inspector()':
flatzinc.cpp:(.text._ZN6Gecode4Gist9InspectorC2Ev[_ZN6Gecode4Gist9InspectorC5Ev]+0xb): undefined reference to `vtable for Gecode::Gist::Inspector'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::FZPrintingInspector(Gecode::FlatZinc::Printer const&)':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEC2ERKNS0_7PrinterE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEC5ERKNS0_7PrinterE]+0x52): undefined reference to `Gecode::Gist::TextOutput::TextOutput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::Comparator::Comparator()':
flatzinc.cpp:(.text._ZN6Gecode4Gist10ComparatorC2Ev[_ZN6Gecode4Gist10ComparatorC5Ev]+0xb): undefined reference to `vtable for Gecode::Gist::Comparator'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::VarComparator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1f): undefined reference to `Gecode::Gist::TextOutput::TextOutput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x20): undefined reference to `Gecode::Gist::TextOutput::name[abi:cxx11]()'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x50): undefined reference to `Gecode::Gist::Inspector::name[abi:cxx11]()'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE[_ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE]+0x18): undefined reference to `typeinfo for Gecode::Gist::TextOutput'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE[_ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE]+0x28): undefined reference to `typeinfo for Gecode::Gist::Comparator'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x18): undefined reference to `typeinfo for Gecode::Gist::TextOutput'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x28): undefined reference to `typeinfo for Gecode::Gist::Inspector'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::name[abi:cxx11]()':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE4nameB5cxx11Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE4nameB5cxx11Ev]+0x2e): undefined reference to `Gecode::Gist::TextOutput::name[abi:cxx11]()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingComparator<Gecode::FlatZinc::FlatZincSpace>::compare(Gecode::Space const&, Gecode::Space const&)':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0x21): undefined reference to `Gecode::Gist::TextOutput::init()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0x61): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0xaa): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0xe7): undefined reference to `Gecode::Gist::TextOutput::getStream()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::finalize()':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE8finalizeEv[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE8finalizeEv]+0x14): undefined reference to `Gecode::Gist::TextOutput::finalize()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::compare(Gecode::Space const&, Gecode::Space const&)':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0xdc): undefined reference to `Gecode::Gist::TextOutput::init()'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0xf2): undefined reference to `Gecode::Gist::TextOutput::addHtml(char const*)'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0x101): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0x169): undefined reference to `Gecode::Gist::TextOutput::addHtml(char const*)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::inspect(Gecode::Space const&)':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x1b): undefined reference to `Gecode::Gist::TextOutput::init()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x5b): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x75): undefined reference to `Gecode::Gist::TextOutput::getStream()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::finalize()':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE8finalizeEv[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE8finalizeEv]+0x14): undefined reference to `Gecode::Gist::TextOutput::finalize()'
collect2: error: ld returned 1 exit status
CMakeFiles/gecode-test.dir/build.make:4238: recipe for target 'bin/gecode-test' failed
make[2]: *** [bin/gecode-test] Error 1
CMakeFiles/Makefile2:200: recipe for target 'CMakeFiles/gecode-test.dir/all' failed
make[1]: *** [CMakeFiles/gecode-test.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
Christian Schulte
2018-06-25 08:54:33 UTC
Permalink
Hi,

Did you also install the qt header files? Or do you have more than one Qt installation around?

Cheers
Christian

--
Christian Schulte, https://chschulte.github.io/
Professor of Computer Science, KTH, ***@kth.se<mailto:***@kth.se>
Expert Researcher, RISE SICS, ***@ri.se<mailto:***@ri.se>

From: users-***@gecode.org <users-***@gecode.org> On Behalf Of Andrea Sacconi
Sent: Saturday, June 23, 2018 19:25
To: ***@gecode.org
Subject: [gecode-users] Installation problem: undefined rerence to Gist

Hello,

I have just downloaded the source code of Gecode and I am trying to install it on my Ubuntu 18.04 machine.

Unfortunately, I stumbled on a linking problem related to Gist. Apparently there is a problem with linking such library, but I do not know what to do. I downloaded Qt5 and I thought it would be fine, but that is not the case. Do I have to modify anything with CMake?

Could you please help me?

[ 99%] Linking CXX executable bin/gecode-test
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::dfs(Gecode::Space*, Gecode::Gist::Options const&)':
flatzinc.cpp:(.text._ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE[_ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE]+0x21): undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool, Gecode::Gist::Options const&)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::bab(Gecode::Space*, Gecode::Gist::Options const&)':
flatzinc.cpp:(.text._ZN6Gecode4Gist3babEPNS_5SpaceERKNS0_7OptionsE[_ZN6Gecode4Gist3babEPNS_5SpaceERKNS0_7OptionsE]+0x21): undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool, Gecode::Gist::Options const&)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::~FZPrintingInspector()':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED2Ev[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED5Ev]+0x3d): undefined reference to `Gecode::Gist::Inspector::~Inspector()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED2Ev[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED5Ev]+0x49): undefined reference to `Gecode::Gist::TextOutput::~TextOutput()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::~VarComparator()':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED2Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED5Ev]+0x3d): undefined reference to `Gecode::Gist::Comparator::~Comparator()'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED2Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED5Ev]+0x49): undefined reference to `Gecode::Gist::TextOutput::~TextOutput()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::Inspector::Inspector()':
flatzinc.cpp:(.text._ZN6Gecode4Gist9InspectorC2Ev[_ZN6Gecode4Gist9InspectorC5Ev]+0xb): undefined reference to `vtable for Gecode::Gist::Inspector'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::FZPrintingInspector(Gecode::FlatZinc::Printer const&)':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEC2ERKNS0_7PrinterE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEC5ERKNS0_7PrinterE]+0x52): undefined reference to `Gecode::Gist::TextOutput::TextOutput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::Comparator::Comparator()':
flatzinc.cpp:(.text._ZN6Gecode4Gist10ComparatorC2Ev[_ZN6Gecode4Gist10ComparatorC5Ev]+0xb): undefined reference to `vtable for Gecode::Gist::Comparator'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::VarComparator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1f): undefined reference to `Gecode::Gist::TextOutput::TextOutput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x20): undefined reference to `Gecode::Gist::TextOutput::name[abi:cxx11]()'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x50): undefined reference to `Gecode::Gist::Inspector::name[abi:cxx11]()'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE[_ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE]+0x18): undefined reference to `typeinfo for Gecode::Gist::TextOutput'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE[_ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE]+0x28): undefined reference to `typeinfo for Gecode::Gist::Comparator'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x18): undefined reference to `typeinfo for Gecode::Gist::TextOutput'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x28): undefined reference to `typeinfo for Gecode::Gist::Inspector'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::name[abi:cxx11]()':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE4nameB5cxx11Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE4nameB5cxx11Ev]+0x2e): undefined reference to `Gecode::Gist::TextOutput::name[abi:cxx11]()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingComparator<Gecode::FlatZinc::FlatZincSpace>::compare(Gecode::Space const&, Gecode::Space const&)':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0x21): undefined reference to `Gecode::Gist::TextOutput::init()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0x61): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0xaa): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0xe7): undefined reference to `Gecode::Gist::TextOutput::getStream()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::finalize()':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE8finalizeEv[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE8finalizeEv]+0x14): undefined reference to `Gecode::Gist::TextOutput::finalize()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::compare(Gecode::Space const&, Gecode::Space const&)':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0xdc): undefined reference to `Gecode::Gist::TextOutput::init()'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0xf2): undefined reference to `Gecode::Gist::TextOutput::addHtml(char const*)'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0x101): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0x169): undefined reference to `Gecode::Gist::TextOutput::addHtml(char const*)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::inspect(Gecode::Space const&)':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x1b): undefined reference to `Gecode::Gist::TextOutput::init()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x5b): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x75): undefined reference to `Gecode::Gist::TextOutput::getStream()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::finalize()':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE8finalizeEv[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE8finalizeEv]+0x14): undefined reference to `Gecode::Gist::TextOutput::finalize()'
collect2: error: ld returned 1 exit status
CMakeFiles/gecode-test.dir/build.make:4238: recipe for target 'bin/gecode-test' failed
make[2]: *** [bin/gecode-test] Error 1
CMakeFiles/Makefile2:200: recipe for target 'CMakeFiles/gecode-test.dir/all' failed
make[1]: *** [CMakeFiles/gecode-test.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
Andrea Sacconi
2018-06-25 09:37:00 UTC
Permalink
I believe so ... I installed everything for Qt through apt-get install of Ubuntu. And I think I have got only Qt5 around. I think it's a matter of libraries order, but I don't know how to fix it :(

Sent from my Huawei Mobile

-------- Original Message --------
Subject: RE: Installation problem: undefined rerence to Gist
From: Christian Schulte
To: Andrea Sacconi ,***@gecode.org
CC:

Hi,

Did you also install the qt header files? Or do you have more than one Qt installation around?

Cheers
Christian

--
Christian Schulte, https://chschulte.github.io/
Professor of Computer Science, KTH, ***@kth.se<mailto:***@kth.se>
Expert Researcher, RISE SICS, ***@ri.se<mailto:***@ri.se>

From: users-***@gecode.org <users-***@gecode.org> On Behalf Of Andrea Sacconi
Sent: Saturday, June 23, 2018 19:25
To: ***@gecode.org
Subject: [gecode-users] Installation problem: undefined rerence to Gist

Hello,

I have just downloaded the source code of Gecode and I am trying to install it on my Ubuntu 18.04 machine.

Unfortunately, I stumbled on a linking problem related to Gist. Apparently there is a problem with linking such library, but I do not know what to do. I downloaded Qt5 and I thought it would be fine, but that is not the case. Do I have to modify anything with CMake?

Could you please help me?

[ 99%] Linking CXX executable bin/gecode-test
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::dfs(Gecode::Space*, Gecode::Gist::Options const&)':
flatzinc.cpp:(.text._ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE[_ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE]+0x21): undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool, Gecode::Gist::Options const&)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::bab(Gecode::Space*, Gecode::Gist::Options const&)':
flatzinc.cpp:(.text._ZN6Gecode4Gist3babEPNS_5SpaceERKNS0_7OptionsE[_ZN6Gecode4Gist3babEPNS_5SpaceERKNS0_7OptionsE]+0x21): undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool, Gecode::Gist::Options const&)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::~FZPrintingInspector()':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED2Ev[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED5Ev]+0x3d): undefined reference to `Gecode::Gist::Inspector::~Inspector()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED2Ev[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED5Ev]+0x49): undefined reference to `Gecode::Gist::TextOutput::~TextOutput()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::~VarComparator()':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED2Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED5Ev]+0x3d): undefined reference to `Gecode::Gist::Comparator::~Comparator()'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED2Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED5Ev]+0x49): undefined reference to `Gecode::Gist::TextOutput::~TextOutput()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::Inspector::Inspector()':
flatzinc.cpp:(.text._ZN6Gecode4Gist9InspectorC2Ev[_ZN6Gecode4Gist9InspectorC5Ev]+0xb): undefined reference to `vtable for Gecode::Gist::Inspector'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::FZPrintingInspector(Gecode::FlatZinc::Printer const&)':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEC2ERKNS0_7PrinterE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEC5ERKNS0_7PrinterE]+0x52): undefined reference to `Gecode::Gist::TextOutput::TextOutput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::Comparator::Comparator()':
flatzinc.cpp:(.text._ZN6Gecode4Gist10ComparatorC2Ev[_ZN6Gecode4Gist10ComparatorC5Ev]+0xb): undefined reference to `vtable for Gecode::Gist::Comparator'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::VarComparator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1f): undefined reference to `Gecode::Gist::TextOutput::TextOutput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x20): undefined reference to `Gecode::Gist::TextOutput::name[abi:cxx11]()'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x50): undefined reference to `Gecode::Gist::Inspector::name[abi:cxx11]()'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE[_ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE]+0x18): undefined reference to `typeinfo for Gecode::Gist::TextOutput'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE[_ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE]+0x28): undefined reference to `typeinfo for Gecode::Gist::Comparator'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x18): undefined reference to `typeinfo for Gecode::Gist::TextOutput'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x28): undefined reference to `typeinfo for Gecode::Gist::Inspector'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::name[abi:cxx11]()':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE4nameB5cxx11Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE4nameB5cxx11Ev]+0x2e): undefined reference to `Gecode::Gist::TextOutput::name[abi:cxx11]()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingComparator<Gecode::FlatZinc::FlatZincSpace>::compare(Gecode::Space const&, Gecode::Space const&)':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0x21): undefined reference to `Gecode::Gist::TextOutput::init()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0x61): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0xaa): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0xe7): undefined reference to `Gecode::Gist::TextOutput::getStream()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::finalize()':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE8finalizeEv[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE8finalizeEv]+0x14): undefined reference to `Gecode::Gist::TextOutput::finalize()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::compare(Gecode::Space const&, Gecode::Space const&)':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0xdc): undefined reference to `Gecode::Gist::TextOutput::init()'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0xf2): undefined reference to `Gecode::Gist::TextOutput::addHtml(char const*)'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0x101): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0x169): undefined reference to `Gecode::Gist::TextOutput::addHtml(char const*)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::inspect(Gecode::Space const&)':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x1b): undefined reference to `Gecode::Gist::TextOutput::init()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x5b): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x75): undefined reference to `Gecode::Gist::TextOutput::getStream()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::finalize()':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE8finalizeEv[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE8finalizeEv]+0x14): undefined reference to `Gecode::Gist::TextOutput::finalize()'
collect2: error: ld returned 1 exit status
CMakeFiles/gecode-test.dir/build.make:4238: recipe for target 'bin/gecode-test' failed
make[2]: *** [bin/gecode-test] Error 1
CMakeFiles/Makefile2:200: recipe for target 'CMakeFiles/gecode-test.dir/all' failed
make[1]: *** [CMakeFiles/gecode-test.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
Andrea Sacconi
2018-07-08 21:53:19 UTC
Permalink
Hi all,

I tried again, this time uninstalling Qt5 and then re-installing it, but the result is unfortunately the same. If I try the development version and not the stable release, I encounter the same problem.

Any ideas on how to solve it?

Cheers,
Andrea
________________________________
From: Andrea Sacconi <***@hotmail.co.uk>
Sent: 25 June 2018 10:37
To: Christian Schulte; ***@gecode.org
Subject: Re: Installation problem: undefined rerence to Gist

I believe so ... I installed everything for Qt through apt-get install of Ubuntu. And I think I have got only Qt5 around. I think it's a matter of libraries order, but I don't know how to fix it :(

Sent from my Huawei Mobile

-------- Original Message --------
Subject: RE: Installation problem: undefined rerence to Gist
From: Christian Schulte
To: Andrea Sacconi ,***@gecode.org
CC:


Hi,



Did you also install the qt header files? Or do you have more than one Qt installation around?



Cheers

Christian



--

Christian Schulte, https://chschulte.github.io/

Professor of Computer Science, KTH, ***@kth.se<mailto:***@kth.se>

Expert Researcher, RISE SICS, ***@ri.se<mailto:***@ri.se>



From: users-***@gecode.org <users-***@gecode.org> On Behalf Of Andrea Sacconi
Sent: Saturday, June 23, 2018 19:25
To: ***@gecode.org
Subject: [gecode-users] Installation problem: undefined rerence to Gist



Hello,



I have just downloaded the source code of Gecode and I am trying to install it on my Ubuntu 18.04 machine.



Unfortunately, I stumbled on a linking problem related to Gist. Apparently there is a problem with linking such library, but I do not know what to do. I downloaded Qt5 and I thought it would be fine, but that is not the case. Do I have to modify anything with CMake?



Could you please help me?



[ 99%] Linking CXX executable bin/gecode-test

libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::dfs(Gecode::Space*, Gecode::Gist::Options const&)':

flatzinc.cpp:(.text._ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE[_ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE]+0x21): undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool, Gecode::Gist::Options const&)'

libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::bab(Gecode::Space*, Gecode::Gist::Options const&)':

flatzinc.cpp:(.text._ZN6Gecode4Gist3babEPNS_5SpaceERKNS0_7OptionsE[_ZN6Gecode4Gist3babEPNS_5SpaceERKNS0_7OptionsE]+0x21): undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool, Gecode::Gist::Options const&)'

libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::~FZPrintingInspector()':

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED2Ev[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED5Ev]+0x3d): undefined reference to `Gecode::Gist::Inspector::~Inspector()'

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED2Ev[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED5Ev]+0x49): undefined reference to `Gecode::Gist::TextOutput::~TextOutput()'

libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::~VarComparator()':

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED2Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED5Ev]+0x3d): undefined reference to `Gecode::Gist::Comparator::~Comparator()'

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED2Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED5Ev]+0x49): undefined reference to `Gecode::Gist::TextOutput::~TextOutput()'

libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::Inspector::Inspector()':

flatzinc.cpp:(.text._ZN6Gecode4Gist9InspectorC2Ev[_ZN6Gecode4Gist9InspectorC5Ev]+0xb): undefined reference to `vtable for Gecode::Gist::Inspector'

libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::FZPrintingInspector(Gecode::FlatZinc::Printer const&)':

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEC2ERKNS0_7PrinterE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEC5ERKNS0_7PrinterE]+0x52): undefined reference to `Gecode::Gist::TextOutput::TextOutput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::Comparator::Comparator()':

flatzinc.cpp:(.text._ZN6Gecode4Gist10ComparatorC2Ev[_ZN6Gecode4Gist10ComparatorC5Ev]+0xb): undefined reference to `vtable for Gecode::Gist::Comparator'

libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::VarComparator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1f): undefined reference to `Gecode::Gist::TextOutput::TextOutput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x20): undefined reference to `Gecode::Gist::TextOutput::name[abi:cxx11]()'

libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x50): undefined reference to `Gecode::Gist::Inspector::name[abi:cxx11]()'

libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE[_ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE]+0x18): undefined reference to `typeinfo for Gecode::Gist::TextOutput'

libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE[_ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE]+0x28): undefined reference to `typeinfo for Gecode::Gist::Comparator'

libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x18): undefined reference to `typeinfo for Gecode::Gist::TextOutput'

libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x28): undefined reference to `typeinfo for Gecode::Gist::Inspector'

libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::name[abi:cxx11]()':

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE4nameB5cxx11Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE4nameB5cxx11Ev]+0x2e): undefined reference to `Gecode::Gist::TextOutput::name[abi:cxx11]()'

libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingComparator<Gecode::FlatZinc::FlatZincSpace>::compare(Gecode::Space const&, Gecode::Space const&)':

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0x21): undefined reference to `Gecode::Gist::TextOutput::init()'

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0x61): undefined reference to `Gecode::Gist::TextOutput::getStream()'

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0xaa): undefined reference to `Gecode::Gist::TextOutput::getStream()'

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0xe7): undefined reference to `Gecode::Gist::TextOutput::getStream()'

libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::finalize()':

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE8finalizeEv[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE8finalizeEv]+0x14): undefined reference to `Gecode::Gist::TextOutput::finalize()'

libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::compare(Gecode::Space const&, Gecode::Space const&)':

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0xdc): undefined reference to `Gecode::Gist::TextOutput::init()'

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0xf2): undefined reference to `Gecode::Gist::TextOutput::addHtml(char const*)'

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0x101): undefined reference to `Gecode::Gist::TextOutput::getStream()'

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0x169): undefined reference to `Gecode::Gist::TextOutput::addHtml(char const*)'

libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::inspect(Gecode::Space const&)':

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x1b): undefined reference to `Gecode::Gist::TextOutput::init()'

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x5b): undefined reference to `Gecode::Gist::TextOutput::getStream()'

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x75): undefined reference to `Gecode::Gist::TextOutput::getStream()'

libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::finalize()':

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE8finalizeEv[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE8finalizeEv]+0x14): undefined reference to `Gecode::Gist::TextOutput::finalize()'

collect2: error: ld returned 1 exit status

CMakeFiles/gecode-test.dir/build.make:4238: recipe for target 'bin/gecode-test' failed

make[2]: *** [bin/gecode-test] Error 1

CMakeFiles/Makefile2:200: recipe for target 'CMakeFiles/gecode-test.dir/all' failed

make[1]: *** [CMakeFiles/gecode-test.dir/all] Error 2

Makefile:94: recipe for target 'all' failed

make: *** [all] Error 2
Guido Tack
2018-07-17 12:00:38 UTC
Permalink
Hi,

this was a problem with the CMake configuration file, it's fixed on on the
develop branch.

Cheers,
Guido

On Mon, Jun 25, 2018 at 6:54 PM Christian Schulte <***@kth.se> wrote:

> Hi,
>
>
>
> Did you also install the qt header files? Or do you have more than one Qt
> installation around?
>
>
>
> Cheers
>
> Christian
>
>
>
> --
>
> Christian Schulte, https://chschulte.github.io/
>
> Professor of Computer Science, KTH, ***@kth.se
>
> Expert Researcher, RISE SICS, ***@ri.se
>
>
>
> *From:* users-***@gecode.org <users-***@gecode.org> *On Behalf Of
> *Andrea Sacconi
> *Sent:* Saturday, June 23, 2018 19:25
> *To:* ***@gecode.org
> *Subject:* [gecode-users] Installation problem: undefined rerence to Gist
>
>
>
> Hello,
>
>
>
> I have just downloaded the source code of Gecode and I am trying to
> install it on my Ubuntu 18.04 machine.
>
>
>
> Unfortunately, I stumbled on a linking problem related to Gist. Apparently
> there is a problem with linking such library, but I do not know what to do.
> I downloaded Qt5 and I thought it would be fine, but that is not the case.
> Do I have to modify anything with CMake?
>
>
>
> Could you please help me?
>
>
>
> [ 99%] Linking CXX executable bin/gecode-test
>
> libgecodeflatzinc.a(flatzinc.cpp.o): In function
> `Gecode::Gist::dfs(Gecode::Space*, Gecode::Gist::Options const&)':
>
> flatzinc.cpp:(.text._ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE[_ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE]+0x21):
> undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool,
> Gecode::Gist::Options const&)'
>
> libgecodeflatzinc.a(flatzinc.cpp.o): In function
> `Gecode::Gist::bab(Gecode::Space*, Gecode::Gist::Options const&)':
>
> flatzinc.cpp:(.text._ZN6Gecode4Gist3babEPNS_5SpaceERKNS0_7OptionsE[_ZN6Gecode4Gist3babEPNS_5SpaceERKNS0_7OptionsE]+0x21):
> undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool,
> Gecode::Gist::Options const&)'
>
> libgecodeflatzinc.a(flatzinc.cpp.o): In function
> `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::~FZPrintingInspector()':
>
> flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED2Ev[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED5Ev]+0x3d):
> undefined reference to `Gecode::Gist::Inspector::~Inspector()'
>
> flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED2Ev[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED5Ev]+0x49):
> undefined reference to `Gecode::Gist::TextOutput::~TextOutput()'
>
> libgecodeflatzinc.a(flatzinc.cpp.o): In function
> `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::~VarComparator()':
>
> flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED2Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED5Ev]+0x3d):
> undefined reference to `Gecode::Gist::Comparator::~Comparator()'
>
> flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED2Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED5Ev]+0x49):
> undefined reference to `Gecode::Gist::TextOutput::~TextOutput()'
>
> libgecodeflatzinc.a(flatzinc.cpp.o): In function
> `Gecode::Gist::Inspector::Inspector()':
>
> flatzinc.cpp:(.text._ZN6Gecode4Gist9InspectorC2Ev[_ZN6Gecode4Gist9InspectorC5Ev]+0xb):
> undefined reference to `vtable for Gecode::Gist::Inspector'
>
> libgecodeflatzinc.a(flatzinc.cpp.o): In function
> `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::FZPrintingInspector(Gecode::FlatZinc::Printer
> const&)':
>
> flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEC2ERKNS0_7PrinterE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEC5ERKNS0_7PrinterE]+0x52):
> undefined reference to
> `Gecode::Gist::TextOutput::TextOutput(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&)'
>
> libgecodeflatzinc.a(flatzinc.cpp.o): In function
> `Gecode::Gist::Comparator::Comparator()':
>
> flatzinc.cpp:(.text._ZN6Gecode4Gist10ComparatorC2Ev[_ZN6Gecode4Gist10ComparatorC5Ev]+0xb):
> undefined reference to `vtable for Gecode::Gist::Comparator'
>
> libgecodeflatzinc.a(flatzinc.cpp.o): In function
> `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::VarComparator(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >)':
>
> flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1f):
> undefined reference to
> `Gecode::Gist::TextOutput::TextOutput(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&)'
>
> libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x20):
> undefined reference to `Gecode::Gist::TextOutput::name[abi:cxx11]()'
>
> libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x50):
> undefined reference to `Gecode::Gist::Inspector::name[abi:cxx11]()'
>
> libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE[_ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE]+0x18):
> undefined reference to `typeinfo for Gecode::Gist::TextOutput'
>
> libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE[_ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE]+0x28):
> undefined reference to `typeinfo for Gecode::Gist::Comparator'
>
> libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x18):
> undefined reference to `typeinfo for Gecode::Gist::TextOutput'
>
> libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x28):
> undefined reference to `typeinfo for Gecode::Gist::Inspector'
>
> libgecodeflatzinc.a(flatzinc.cpp.o): In function
> `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::name[abi:cxx11]()':
>
> flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE4nameB5cxx11Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE4nameB5cxx11Ev]+0x2e):
> undefined reference to `Gecode::Gist::TextOutput::name[abi:cxx11]()'
>
> libgecodeflatzinc.a(flatzinc.cpp.o): In function
> `Gecode::FlatZinc::FZPrintingComparator<Gecode::FlatZinc::FlatZincSpace>::compare(Gecode::Space
> const&, Gecode::Space const&)':
>
> flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0x21):
> undefined reference to `Gecode::Gist::TextOutput::init()'
>
> flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0x61):
> undefined reference to `Gecode::Gist::TextOutput::getStream()'
>
> flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0xaa):
> undefined reference to `Gecode::Gist::TextOutput::getStream()'
>
> flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0xe7):
> undefined reference to `Gecode::Gist::TextOutput::getStream()'
>
> libgecodeflatzinc.a(flatzinc.cpp.o): In function
> `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::finalize()':
>
> flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE8finalizeEv[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE8finalizeEv]+0x14):
> undefined reference to `Gecode::Gist::TextOutput::finalize()'
>
> libgecodeflatzinc.a(flatzinc.cpp.o): In function
> `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::compare(Gecode::Space
> const&, Gecode::Space const&)':
>
> flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0xdc):
> undefined reference to `Gecode::Gist::TextOutput::init()'
>
> flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0xf2):
> undefined reference to `Gecode::Gist::TextOutput::addHtml(char const*)'
>
> flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0x101):
> undefined reference to `Gecode::Gist::TextOutput::getStream()'
>
> flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0x169):
> undefined reference to `Gecode::Gist::TextOutput::addHtml(char const*)'
>
> libgecodeflatzinc.a(flatzinc.cpp.o): In function
> `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::inspect(Gecode::Space
> const&)':
>
> flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x1b):
> undefined reference to `Gecode::Gist::TextOutput::init()'
>
> flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x5b):
> undefined reference to `Gecode::Gist::TextOutput::getStream()'
>
> flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x75):
> undefined reference to `Gecode::Gist::TextOutput::getStream()'
>
> libgecodeflatzinc.a(flatzinc.cpp.o): In function
> `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::finalize()':
>
> flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE8finalizeEv[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE8finalizeEv]+0x14):
> undefined reference to `Gecode::Gist::TextOutput::finalize()'
>
> collect2: error: ld returned 1 exit status
>
> CMakeFiles/gecode-test.dir/build.make:4238: recipe for target
> 'bin/gecode-test' failed
>
> make[2]: *** [bin/gecode-test] Error 1
>
> CMakeFiles/Makefile2:200: recipe for target
> 'CMakeFiles/gecode-test.dir/all' failed
>
> make[1]: *** [CMakeFiles/gecode-test.dir/all] Error 2
>
> Makefile:94: recipe for target 'all' failed
>
> make: *** [all] Error 2
>
>
> _______________________________________________
> Gecode users mailing list
> ***@gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users
>


--
*GUIDO TACK*
Senior Lecturer

*Information Technology*
Monash University
Level 6, Room 6.40, Building H, Caulfield Campus
900 Dandenong Road
Caulfield East VIC 3145
Australia
T: +61 3 9903 1214
E: ***@monash.edu
http://users.monash.edu/~guidot/
Andrea Sacconi
2018-07-17 14:01:26 UTC
Permalink
That's excellent news! I will download and install the development version tonight after work.

I noticed that there's an example with crosswords. Is it possible to generalise it to the case where the constraint is not given by black cells only, but letters as well? I mean, if I wanted specific letters in certain cells of the crossword, how would I impose it? If possible ....

Cheers,
Andrea

Sent from my Huawei Mobile

-------- Original Message --------
Subject: Re: [gecode-users] Installation problem: undefined rerence to Gist
From: Guido Tack
To: ""
CC: ***@hotmail.co.uk,"***@gecode.org list"

Hi,

this was a problem with the CMake configuration file, it's fixed on on the develop branch.

Cheers,
Guido

On Mon, Jun 25, 2018 at 6:54 PM Christian Schulte <***@kth.se<mailto:***@kth.se>> wrote:
Hi,

Did you also install the qt header files? Or do you have more than one Qt installation around?

Cheers
Christian

--
Christian Schulte, https://chschulte.github.io/
Professor of Computer Science, KTH, ***@kth.se<mailto:***@kth.se>
Expert Researcher, RISE SICS, ***@ri.se<mailto:***@ri.se>

From: users-***@gecode.org<mailto:users-***@gecode.org> <users-***@gecode.org<mailto:users-***@gecode.org>> On Behalf Of Andrea Sacconi
Sent: Saturday, June 23, 2018 19:25
To: ***@gecode.org<mailto:***@gecode.org>
Subject: [gecode-users] Installation problem: undefined rerence to Gist

Hello,

I have just downloaded the source code of Gecode and I am trying to install it on my Ubuntu 18.04 machine.

Unfortunately, I stumbled on a linking problem related to Gist. Apparently there is a problem with linking such library, but I do not know what to do. I downloaded Qt5 and I thought it would be fine, but that is not the case. Do I have to modify anything with CMake?

Could you please help me?

[ 99%] Linking CXX executable bin/gecode-test
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::dfs(Gecode::Space*, Gecode::Gist::Options const&)':
flatzinc.cpp:(.text._ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE[_ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE]+0x21): undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool, Gecode::Gist::Options const&)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::bab(Gecode::Space*, Gecode::Gist::Options const&)':
flatzinc.cpp:(.text._ZN6Gecode4Gist3babEPNS_5SpaceERKNS0_7OptionsE[_ZN6Gecode4Gist3babEPNS_5SpaceERKNS0_7OptionsE]+0x21): undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool, Gecode::Gist::Options const&)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::~FZPrintingInspector()':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED2Ev[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED5Ev]+0x3d): undefined reference to `Gecode::Gist::Inspector::~Inspector()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED2Ev[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED5Ev]+0x49): undefined reference to `Gecode::Gist::TextOutput::~TextOutput()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::~VarComparator()':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED2Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED5Ev]+0x3d): undefined reference to `Gecode::Gist::Comparator::~Comparator()'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED2Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED5Ev]+0x49): undefined reference to `Gecode::Gist::TextOutput::~TextOutput()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::Inspector::Inspector()':
flatzinc.cpp:(.text._ZN6Gecode4Gist9InspectorC2Ev[_ZN6Gecode4Gist9InspectorC5Ev]+0xb): undefined reference to `vtable for Gecode::Gist::Inspector'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::FZPrintingInspector(Gecode::FlatZinc::Printer const&)':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEC2ERKNS0_7PrinterE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEC5ERKNS0_7PrinterE]+0x52): undefined reference to `Gecode::Gist::TextOutput::TextOutput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::Comparator::Comparator()':
flatzinc.cpp:(.text._ZN6Gecode4Gist10ComparatorC2Ev[_ZN6Gecode4Gist10ComparatorC5Ev]+0xb): undefined reference to `vtable for Gecode::Gist::Comparator'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::VarComparator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1f): undefined reference to `Gecode::Gist::TextOutput::TextOutput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x20): undefined reference to `Gecode::Gist::TextOutput::name[abi:cxx11]()'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x50): undefined reference to `Gecode::Gist::Inspector::name[abi:cxx11]()'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE[_ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE]+0x18): undefined reference to `typeinfo for Gecode::Gist::TextOutput'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE[_ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE]+0x28): undefined reference to `typeinfo for Gecode::Gist::Comparator'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x18): undefined reference to `typeinfo for Gecode::Gist::TextOutput'
libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x28): undefined reference to `typeinfo for Gecode::Gist::Inspector'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::name[abi:cxx11]()':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE4nameB5cxx11Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE4nameB5cxx11Ev]+0x2e): undefined reference to `Gecode::Gist::TextOutput::name[abi:cxx11]()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingComparator<Gecode::FlatZinc::FlatZincSpace>::compare(Gecode::Space const&, Gecode::Space const&)':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0x21): undefined reference to `Gecode::Gist::TextOutput::init()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0x61): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0xaa): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0xe7): undefined reference to `Gecode::Gist::TextOutput::getStream()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::finalize()':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE8finalizeEv[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE8finalizeEv]+0x14): undefined reference to `Gecode::Gist::TextOutput::finalize()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::compare(Gecode::Space const&, Gecode::Space const&)':
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0xdc): undefined reference to `Gecode::Gist::TextOutput::init()'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0xf2): undefined reference to `Gecode::Gist::TextOutput::addHtml(char const*)'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0x101): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0x169): undefined reference to `Gecode::Gist::TextOutput::addHtml(char const*)'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::inspect(Gecode::Space const&)':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x1b): undefined reference to `Gecode::Gist::TextOutput::init()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x5b): undefined reference to `Gecode::Gist::TextOutput::getStream()'
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x75): undefined reference to `Gecode::Gist::TextOutput::getStream()'
libgecodeflatzinc.a(flatzinc.cpp.o): In function `Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::finalize()':
flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE8finalizeEv[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE8finalizeEv]+0x14): undefined reference to `Gecode::Gist::TextOutput::finalize()'
collect2: error: ld returned 1 exit status
CMakeFiles/gecode-test.dir/build.make:4238: recipe for target 'bin/gecode-test' failed
make[2]: *** [bin/gecode-test] Error 1
CMakeFiles/Makefile2:200: recipe for target 'CMakeFiles/gecode-test.dir/all' failed
make[1]: *** [CMakeFiles/gecode-test.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2

_______________________________________________
Gecode users mailing list
***@gecode.org<mailto:***@gecode.org>
https://www.gecode.org/mailman/listinfo/gecode-users


--
GUIDO TACK
Senior Lecturer

Information Technology
Monash University
Level 6, Room 6.40, Building H, Caulfield Campus
900 Dandenong Road
Caulfield East VIC 3145
Australia
T: +61 3 9903 1214
E: ***@monash.edu<mailto:***@monash.edu>
http://users.monash.edu/~guidot/
Loading...