title: Unresolved external symbol __report_rangecheckfailure
body: <p>I have this simple program which creates a prompt for password. I have both Visual Studio 2012 and 2010 installed. It works on 2010, but on 2012 I get this error: <code>unresolved external symbol __report_rangecheckfailure referenced in function main</code>. Also, I modified the code by moving everything from main to another function. That works on both versions.</p>
  
  <p>There must be some problems with some library, but which one and how do I solve it? Thanks.</p>
  
  <pre><code>#include &lt;conio.h&gt;
  #include &lt;iostream&gt;
  
  using namespace std;
  
  int main()
  {
      int key, i;
      char pwd[64];
  
      printf("Enter passphrase: ");
  
      key=getch();        
      i=0;
      while (key!=13)
      {
          cout&lt;&lt;"*";      
          pwd[i++]=key;
          key=getch();
      }
  
      pwd[i++]='\0';
  
      cout&lt;&lt;strlen(pwd)&lt;&lt;endl;
      for (i=0; i&lt;strlen(pwd); i++)
          cout&lt;&lt;pwd[i]&lt;&lt;endl;
  
      getch();
  }
  </code></pre>