title: DEBUG:FASTLINK - What is this error?
body: <pre><code>#include &lt;iostream&gt;
  #include &lt;map&gt;
  #include &lt;iterator&gt;
  
  using namespace std;
  
  int main() {
      FILE *fPtr = fopen("english.txt", "r");
  
      if (fPtr == NULL) {
          cout &lt;&lt; "Could not open the file." &lt;&lt; endl;
          system("pause");
          return 0;
      }
      char word[100];
      map &lt;string, int&gt; freq;
      while (!feof(fPtr)) {
          fscanf(fPtr, "%s", word);
          freq[word]++;
      }
      multimap &lt;int, string &gt; freq_rev;
      map&lt;string, int&gt;::iterator it;
      for (it = freq.begin(); it != freq.end(); it++)
          freq_rev.insert(make_pair(it-&gt;second, it-&gt;first));
  
      multimap &lt;int, string&gt;::reverse_iterator myit;
      int count;
      for (myit = freq_rev.rbegin(), count = 0; count &lt; 10; myit++, count++)
          cout &lt;&lt; (*myit).second &lt;&lt; " " &lt;&lt; (*myit).first &lt;&lt; endl;
      fclose(fPtr);
      system("pause");
      return 0;
  }
  </code></pre>
  
  <p>I am using Visual Studio 2017 for Data Structures course. Code above is supposed to look into the english.txt file which contains a lot of words, to detect frequency of these words, and print top 10 frequently used words. </p>
  
  <p>Before getting to errors in the code, VS 17 gives this <a href="https://i.stack.imgur.com/FbyBX.png" rel="noreferrer">error</a>:</p>
  
  <blockquote>
    <p>Could not find c:/Users/username/documents/visual studio
    2017/Projects/projectname/projectname/Debug/projectname.obj'.projectname.exe
    was built with /DEBUG:FASTLINK which requires object files for
    debugging.</p>
    
    <p>Subsequent failures will be logged to the Debug pane of the Output
    window.</p>
  </blockquote>
  
  <p>I am not an experienced programmer, I googled but could not find something useful. What is this supposed to be, what should I do?</p>