title: How to link libconfig library for Raspberry Pi application
body: <p>Currently, I am modifying the C application for Raspberry Pi.
  I build the application with this command: </p>
  
  <pre><code>make
  </code></pre>
  
  <p>Now I want to use <a href="http://www.hyperrealm.com/libconfig/" rel="nofollow">libconfig</a> library.
  I have this below problems</p>
  
  <pre><code>pi@raspberrypi ~/yyyyy $ make
  make --no-print-directory all-am
    CC       tools/xxxxx.o
    CCLD     tools/xxxxx
  tools/xxxxx.c:2434: undefined reference to `config_read_file'
  tools/xxxxx.c:2441: undefined reference to `config_lookup_string'
  tools/xxxxx.c:2446: undefined reference to `config_destroy'
  tools/xxxxx.c:2436: undefined reference to `config_destroy'
  </code></pre>
  
  <p>In the <a href="http://www.hyperrealm.com/libconfig/libconfig_manual.html#Using-the-Library-from-a-C-Program" rel="nofollow">libconfig manual</a> they said:</p>
  
  <blockquote>
    <p>To link with the library, specify ‘-lconfig’ as an argument to the
    linker.</p>
  </blockquote>
  
  <p>How can I link with <code>make</code> command?</p>