title: How to link .lib library in linux
body: <p>I'm pretty new to c programming and want to port a windows c application to linux. My code uses a .lib file <code>va_g729.lib</code> - is it possible to use the same library in Linux and compile it with gcc?</p>
  
  <p>All my <code>.c</code> and <code>.h</code> files along with the one <code>.lib</code> files are in the same directory. What I'm doing now is executing this command in the directory:</p>
  
  <pre><code>gcc *.c -lm
  </code></pre>
  
  <p>and I get following errors:</p>
  
  <pre><code>lbcodec2.c:(.text+0xa6b): undefined reference to `va_g729a_init_encoder'
  lbcodec2.c:(.text+0xa83): undefined reference to `va_g729a_encoder'
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>Is it possible to link the <code>.lib</code> file and compile with gcc?</p>
  
  <p>Thanks.</p>