I am writing a command line executable around CLucene. I am trying to add a document to the clucene index (the index creation code compiles and works) by doing
config.add( *_CLNEW Field( _T("seq_num"), _T("0"), Field::STORE_YES | Field::INDEX_TOKENIZED ) ); and I get the following error when linking (I link against clucene-core and clucene-shared) fti error LNK2001: unresolved external symbol "public: virtual char const * __thiscall lucene::document::Field::stringValue(void)" (?stringva...@field@docum...@lucene@@UAEPBDXZ) fti error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall lucene::document::Field::Field(char const *,char const *,int,bool)" (__imp_??0fi...@document@lucene@@q...@pbd0h_n@Z) referenced in function "public: void __thiscall CouchLucene::open_index(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?open_in...@couchlucene@@qaexv?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@@Z) this is a bit of show stopper!! I am using the latest code from git. Are they are compiler options I should add? My full linker command line is /OUT:"Release/fti.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\projects\clucene\Visual Studio 7 .NET 2003\bin\release" /DEBUG /PDB:"Release/fti.pdb" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /MACHINE:X86 clucene-core.lib clucene-shared.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "\projects\clucene\Visual Studio 7 .NET 2003\bin\release\clucene-core.lib" "\projects\clucene\Visual Studio 7 .NET 2003\bin\release\clucene-shared.lib" and my full compile command line is /O2 /I "C:\projects\clucene\Visual Studio 7 .NET 2003\src\shared" /I "c:\projects\clucene\src\shared" /I "C:\projects\clucene\src\core" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /EHsc /ML /GS /Fo"Release/" /Fd"Release/vc70.pdb" /W3 /nologo /c /Wp64 /Zi /TP thanks, Norman ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ CLucene-developers mailing list CLucene-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clucene-developers