title: ranlib and static library
body: <p>I am trying to link a static library that I created, but I get this error.</p>
  
  <pre><code>libmine.a: could not read symbols: Archive has no index; run ranlib to add one
  </code></pre>
  
  <p>I tried to do <code>ranlib libmine.a</code> but nothing changed, it still gives the same error. How can I solve this problem?</p>