title: undefined reference to `png_read_info'
body: <p>I<code>m trying to compile source code, but receive:
      undefined reference to</code>png_read_info'
  File header:
      #include "PngImage.hh"</p>
  
  <pre><code>#include &lt;png.h&gt;
  
  #include &lt;cstdio&gt;
  #include &lt;csetjmp&gt;
  #include &lt;cstring&gt;
  </code></pre>
  
  <p>My compiler settings:
          -I/usr/include/libxml2 -I/usr/include/osmpbf -O0 -g3 -Wall -c -fmessage-length=0 -lpng</p>
  
  <p>What I`m doing wrong ?</p>
  
  <p>Update:
  I`m trying linking:
  -I/usr/include/libxml2 -I/usr/include/osmpbf -O0 -g3 -Wall -c -fmessage-length=0 -L/usr/include/libpng -lpng</p>
  
  <p>Library libpng already installed. Nothing change I receive again:
           undefined reference topng_read_info</p>
  
  <p>Fixed. My great mistake. I set compiler settings in eclipse instead of linker settings. Thank all for answers</p>