title: how to avoid "already defined error" in C++
body: <p>I am gettings these type of errors in a MFC VS6 project while linking the application:</p>
  
  <pre><code>msvcrt.lib(MSVCRT.dll) : error LNK2005: _atoi already defined in LIBC.lib(atox.obj)
  </code></pre>
  
  <p>I know what it means (a function exists in 2 different libraries); to solve it I should have to exclude one of the 2 libraries (<code>msvcrt.lib</code> or <code>libc.lib</code>).</p>
  
  <p>But if I do this there are all kinds of unresolved external errors. So I would like to keep using both libraries.</p>
  
  <p>Is there any way to tell the linker that I want to use the <code>_atoi</code> function in <code>libc.lib</code> and not in <code>msvcrt.lib</code> (or the other way around)?</p>
  
  <p>Any help or direction would be great.</p>