title: Can't compile example from google protocol buffers
body: <p>I grep for other topics, but they dont help me =(.
  On my working server, i have no sudo privilegies, so i install PB with</p>
  
  <blockquote>
    <p>./configure --prefix=/home/username/local</p>
  </blockquote>
  
  <p>Then i create source files with "person" example and succesfully compile it with protoc.</p>
  
  <p>I have no pkg-info =(.   I try to compile it with</p>
  
  <blockquote>
    <p>g++ -I /home/username/local/include -L /home/username/local/lib -lprotobuf
    -lpthread  main.cpp person.pb.cc</p>
  </blockquote>
  
  <p>and then have a billion simular errors i.e. </p>
  
  <blockquote>
    <p>person.pb.cc:(.text+0x4cf): undefined reference to
    `google::protobuf::internal::kEmptyString'</p>
  </blockquote>
  
  <p>I think, that it is a problem with linking, but how to solve it?</p>
  
  <blockquote>
    <p>echo $LD_LIBRARY_PATH 
    /home/username/local/lib</p>
  </blockquote>
  
  <p>in main.cpp:</p>
  
  <pre><code>#include "person.pb.h"
  ...
  </code></pre>
  
  <p>Thanks.</p>