title: How to find what library name should I use
body: <p>I must add <code>-lm</code> in gcc command when using <code>pow</code>. One day when I was learning linux thread I saw I must add <code>-lpthread</code> in gcc command.
  I know it might be impossible to find library name via function name. But <strong>is there a way to find what library name should I add</strong>? Maybe via the header's name? Now the only way I know is searching other's experience.</p>