you're missing the actual contribs lib. the contribs lib doesn't get built
by default (the BUILD_CONTRIB_LIBS just indicates that the targets are
created). so you'll have to call make clucene-contribs-lib, and that will
create another library which you must link in.

hope that helps

ben

On Mon, Nov 8, 2010 at 8:49 AM, muhammad ismael <m.ismae...@gmail.com>wrote:

> Hello everybody,
> I have a problem when i use highlighter i get the following error :
>
> ./debug\searchengine.o:D:\Projects\MyProjects\shamla\sourcecode\Shamla-build-desktop/../Shamla/SearchEngine/searchengine.cpp:43:
> undefined reference to
> `_imp___ZN6lucene6search9highlight11QueryScorerC1EPKNS0_5QueryE'
>
> ./debug\searchengine.o:D:\Projects\MyProjects\shamla\sourcecode\Shamla-build-desktop/../Shamla/SearchEngine/searchengine.cpp:44:
> undefined reference to
> `_imp___ZN6lucene6search9highlight11HighlighterC1EPNS1_15HighlightScorerE'
>
> ./debug\searchengine.o:D:\Projects\MyProjects\shamla\sourcecode\Shamla-build-desktop/../Shamla/SearchEngine/searchengine.cpp:45:
> undefined reference to
> `_imp___ZN6lucene6search9highlight11Highlighter15getBestFragmentEPNS_8analysis8AnalyzerEPKwS7_'
>
> So i think that the dll is not correct because it does not contains the
> implementation of highlighter.
> although, i built the CLucene as follows:
>
>    1. I configured the clucene using CMake and enabled the
>    BUILD_CONTRIBS_LIBS
>    2.  Next, I generated the cmakefiles.
>    3.  I used Mingw32-make to build the library.
>    4. i got 4 files :-
>
>
>    - libclucene-core.dll (12.1 MB)
>    - libclucene-core.dll.a (1.78 MB)
>    - libclucene-shared.dll (896 KB)
>    - libclucene-shared.dll.a (84.9 KB)
>
> I think that files with "a" extension are the release files so i used it.
> What is the problem?
>
> --
> Sincerely
> --------------------
> Mohammad Ismael
> Software Developer
> Mobile:+20114753575
>
>
>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> CLucene-developers mailing list
> CLucene-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/clucene-developers
>
>
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to