title: Fatal error: 'stdafx.h' file not found
body: <p>I am new to programming C++ and am trying to learn myself through websites (learncpp.com) although I am already stuck on compiling my first program =( . They use Visual Studio to program their code and because I am using a macbook, I just use vi and terminal (or should I use something else?)</p>
  
  <p>Here's the helloworld.cpp program I wrote based on the tutorial:</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;iostream&gt;
  {
       std::cout &lt;&lt;"Hello World!" &lt;&lt;std::end1;
       return 0;
  }
  </code></pre>
  
  <p>when I compiled (gcc -Wall hello.cpp) I get the error :</p>
  
  <pre><code>helloworld.cpp:1:10: fatal error: 'stdafx.h' file not found
  
  #include "stdafx.h"
           ^
  1 error generated.
  </code></pre>
  
  <p>Can anyone give me insight on to how to fix this?</p>