From: Vikash J. <vik...@ya...> - 2014-12-11 10:01:18
|
Hi CLucene Developers, Greetings!!! I am new to CLucene. I build clucene static library using below command with clucene-core-2.3.3.4 code as per instructions in clucene-core-2.3.3.4/INSTALL: cmake -DBUILD_STATIC_LIBRARIES=ON ../ After that I was able to generate below libs: libclucene-core.so libclucene-core.so.2.3.3.4 libclucene-shared.so libclucene-shared.so.2.3.3.4 libclucene-core.so.1 libclucene-core-static.a libclucene-shared.so.1 libclucene-shared-static.a There after I was able to run a sample app to create indexes using libclucene-shared but getting below errors when I am using libclucene-core-static.a undefined reference to `lucene::document::Document::Document()' undefined reference to `lucene::document::Field::Field(wchar_t const*, wchar_t const*, int, bool)' undefined reference to `lucene::document::Document::add(lucene::document::Field&)' undefined reference to `lucene::document::Field::Field(wchar_t const*, wchar_t const*, int, bool)' undefined reference to `lucene::document::Document::add(lucene::document::Field&)' undefined reference to `lucene::index::IndexWriter::addDocument(lucene::document::Document*, lucene::analysis::Analyzer*)' undefined reference to `lucene::document::Document::clear()' undefined reference to `lucene::document::Document::~Document()' undefined reference to `lucene::document::Document::~Document()' undefined reference to `lucene::analysis::standard::StandardAnalyzer::StandardAnalyzer()' undefined reference to `lucene::index::IndexReader::indexExists(char const*)' undefined reference to `lucene::index::IndexReader::isLocked(char const*)' undefined reference to `lucene::index::IndexReader::unlock(char const*)' undefined reference to `lucene::index::IndexWriter::IndexWriter(char const*, lucene::analysis::Analyzer*, bool)' undefined reference to `lucene::index::IndexWriter::IndexWriter(char const*, lucene::analysis::Analyzer*, bool)' undefined reference to `lucene::index::IndexWriter::setMaxFieldLength(int)' undefined reference to `lucene::index::IndexWriter::setUseCompoundFile(bool)' undefined reference to `lucene::index::IndexWriter::setUseCompoundFile(bool)' undefined reference to `lucene::index::IndexWriter::optimize(bool)' undefined reference to `lucene::index::IndexWriter::close(bool)' undefined reference to `lucene::analysis::standard::StandardAnalyzer::~StandardAnalyzer()' undefined reference to `lucene::analysis::standard::StandardAnalyzer::~StandardAnalyzer()' Please help me how to use static library. Thanks & regards, Vikash Jindal |