 <p>This is on mac, I'm guessing? I'm not very familiar with compiling on mac. </p> <p>Can you tell us how you're compiling (i.e. what compile flags, etc). And perhaps add an example which is compilable).</p> <p>Also, can you compile this code using your environment?</p> <pre><code>#include "CLucene.h" int main(){ lucene::analysis::SimpleAnalyzer *sanalyzer = new lucene::analysis::SimpleAnalyzer(); } </code></pre> <p>I compiled the above code with the following command with no problems. (-fPIC because i'm on an 64 bit machine).</p> <blockquote> <p>g++ test.cpp -lclucene -I/usr/lib -fPIC</p> </blockquote>