Menu

#234 how to solve the linked error i when i run dist-test.sh, thanks

other
open
1
2021-07-12
2021-07-12
pexian dai
No

hi, Ben
when i run the shell in dist-test.sh, it occur the linked error below:
cd /root/MySpace/clucene/src/test && /usr/bin/cmake -E cmake_link_script CMakeFiles/cl_test-pedantic.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -O2 -g -DNDEBUG -lpthread -Wall -pthread CMakeFiles/cl_test-pedantic.dir/__/core/CLucene/CLMonolithic.o CMakeFiles/cl_test-pedantic.dir/CLMonolithic_Test.o -o ../../bin/cl_test-pedantic -rdynamic ../../bin/libclucene-contribs-lib.so.0.9.23.0 -lz ../../bin/libclucene-core.so.0.9.23.0 ../../bin/libclucene-shared.so.0.9.23.0 -lpthread -lz -Wl,-rpath,/root/MySpace/clucene/bin
CMakeFiles/cl_test-pedantic.dir/CLMonolithic_Test.o: In function testMultiPhraseQuery(CuTest*)': /root/MySpace/clucene/src/test/search/TestQueries.cpp:358: undefined reference toQueryUtils::checkEqual(CuTest, lucene::search::Query, lucene::search::Query*)'
CMakeFiles/cl_test-pedantic.dir/CLMonolithic_Test.o:(.data.rel+0x28): undefined reference to testIndexSearcher()' CMakeFiles/cl_test-pedantic.dir/CLMonolithic_Test.o:(.data.rel+0x78): undefined reference totestField()'
CMakeFiles/cl_test-pedantic.dir/CLMonolithic_Test.o:(.data.rel+0xa8): undefined reference to testRAMDirectory()' CMakeFiles/cl_test-pedantic.dir/CLMonolithic_Test.o:(.data.rel+0xd8): undefined reference totestAddIndexesNoOptimize()'
CMakeFiles/cl_test-pedantic.dir/CLMonolithic_Test.o:(.data.rel+0x158): undefined reference to testRangeFilter()' CMakeFiles/cl_test-pedantic.dir/CLMonolithic_Test.o:(.data.rel+0x178): undefined reference totestConstantScoreQueries()'
CMakeFiles/cl_test-pedantic.dir/CLMonolithic_Test.o:(.data.rel+0x1f8): undefined reference to testBitSet()' CMakeFiles/cl_test-pedantic.dir/CLMonolithic_Test.o:(.data.rel+0x208): undefined reference totestExtractTerms()'
CMakeFiles/cl_test-pedantic.dir/CLMonolithic_Test.o:(.data.rel+0x218): undefined reference to testSpanQueries()' CMakeFiles/cl_test-pedantic.dir/CLMonolithic_Test.o:(.data.rel+0x228): undefined reference totestStringBuffer()'
CMakeFiles/cl_test-pedantic.dir/CLMonolithic_Test.o:(.data.rel+0x238): undefined reference to testTermVectorsReader()' CMakeFiles/cl_test-pedantic.dir/CLMonolithic_Test.o:(.data.rel+0x248): undefined reference totestGermanAnalyzer()'

Discussion


Log in to post a comment.