[gecode-users] Compiling error

cristian crispesdeep at gmail.com
Wed Feb 18 17:56:42 CET 2009


 Hi To everyBody

I am a Beginner in Gecode, and the follow error appear when I
compiling at Eclipse
The  version of gecode is 2.1.1. and the IDE no marked errors in the code.
Thanks for your attention

**** Build of configuration Debug for project prueba ****

make all
Building file: ../Probando.cc
Invoking: GCC C++ Compiler
g++ -I/usr/local/include/gecode -O0 -g3 -Wall -c -fmessage-length=0
-MMD -MP -MF"Probando.d" -MT"Probando.d" -o"Probando.o"
"../Probando.cc"
Finished building: ../Probando.cc

Building target: prueba
Invoking: GCC C++ Linker
g++ -O0 -g3 -lgecodesearch -lgecodeminimodel -lgecodeserialization
-lgecodecpltset -lgecodeset -lgecodeint -lgecodekernel -lgecodesupport
-Xlinker /usr/local/include/gecode/examples/support/example.o -Xlinker
/usr/local/include/gecode/examples/support/options.o -o"prueba"
./Probando.o
./Probando.o: In function
`Gecode::Gist::PrintingInspector<Test>::PrintingInspector(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
Probando.cc:(.text._ZN6Gecode4Gist17PrintingInspectorI4TestEC1ERKSs[Gecode::Gist::PrintingInspector<Test>::PrintingInspector(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)]+0x14):
undefined reference to
`Gecode::Gist::TextInspector::TextInspector(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
./Probando.o: In function
`Gecode::Gist::PrintingInspector<Test>::~PrintingInspector()':
Probando.cc:(.text._ZN6Gecode4Gist17PrintingInspectorI4TestED0Ev[Gecode::Gist::PrintingInspector<Test>::~PrintingInspector()]+0x16):
undefined reference to `Gecode::Gist::TextInspector::~TextInspector()'
./Probando.o: In function
`Gecode::Gist::PrintingInspector<Test>::~PrintingInspector()':
Probando.cc:(.text._ZN6Gecode4Gist17PrintingInspectorI4TestED1Ev[Gecode::Gist::PrintingInspector<Test>::~PrintingInspector()]+0x16):
undefined reference to `Gecode::Gist::TextInspector::~TextInspector()'
./Probando.o: In function
`Gecode::Gist::PrintingInspector<Test>::inspect(Gecode::Space*)':
Probando.cc:(.text._ZN6Gecode4Gist17PrintingInspectorI4TestE7inspectEPNS_5SpaceE[Gecode::Gist::PrintingInspector<Test>::inspect(Gecode::Space*)]+0xf):
undefined reference to `Gecode::Gist::TextInspector::init()'
Probando.cc:(.text._ZN6Gecode4Gist17PrintingInspectorI4TestE7inspectEPNS_5SpaceE[Gecode::Gist::PrintingInspector<Test>::inspect(Gecode::Space*)]+0x5f):
undefined reference to `Gecode::Gist::TextInspector::getStream()'
./Probando.o: In function `GistEngine<Gecode::DFS<Test>
>::explore(Test*, Gecode::Gist::Inspector*)':
Probando.cc:(.text._ZN10GistEngineIN6Gecode3DFSI4TestEEE7exploreEPS2_PNS0_4Gist9InspectorE[GistEngine<Gecode::DFS<Test>
>::explore(Test*, Gecode::Gist::Inspector*)]+0x14): undefined
reference to `Gecode::explore(Gecode::Space*,
Gecode::Gist::Inspector*)'
./Probando.o:(.rodata._ZTIN6Gecode4Gist17PrintingInspectorI4TestEE[typeinfo
for Gecode::Gist::PrintingInspector<Test>]+0x8): undefined reference
to `typeinfo for Gecode::Gist::TextInspector'
collect2: ld devolvió el estado de salida 1
make: *** [prueba] Error 1




More information about the gecode-users mailing list