title: Linking with libtcmalloc ubuntu
body: <p>I had installed the package <strong>libtcmalloc-minimal0</strong></p>
  
  <p>but when I try to compile my program with flag </p>
  
  <p><strong>-ltcmalloc-minimal0</strong></p>
  
  <p>I am getting error </p>
  
  <p><strong>/usr/bin/ld: cannot find -ltcmalloc_minimal0</strong></p>
  
  <p>I had checked /usr/lib and the library is there </p>
  
  <p>More Info </p>
  
  <p>dpkg gives following o/p </p>
  
  <pre><code>dpkg -L libtcmalloc-minimal0
  /.
  /usr
  /usr/lib
  /usr/lib/libtcmalloc_minimal.so.0.0.0
  /usr/lib/libtcmalloc_minimal_debug.so.0.0.0
  /usr/share
  /usr/share/doc
  /usr/share/doc/libtcmalloc-minimal0
  /usr/share/doc/libtcmalloc-minimal0/TODO
  /usr/share/doc/libtcmalloc-minimal0/AUTHORS
  /usr/share/doc/libtcmalloc-minimal0/copyright
  /usr/share/doc/libtcmalloc-minimal0/changelog.gz
  /usr/share/doc/libtcmalloc-minimal0/README.gz
  /usr/share/doc/libtcmalloc-minimal0/changelog.Debian.gz
  /usr/lib/libtcmalloc_minimal.so.0
  /usr/lib/libtcmalloc_minimal_debug.so.0
  </code></pre>
  
  <p>and I am compiling for 64 bit mode </p>
  
  <p>and library is also 64 bit </p>
  
  <pre><code>file  /usr/lib/libtcmalloc_minimal.so.0.0.0
  /usr/lib/libtcmalloc_minimal.so.0.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
  </code></pre>