title: undefined reference to WinMain, [Error] Id returned 1 exit status
body: <p>What have I screwed up here? There can be no hard coded values in the code which is why all my prompts are constants. We also have to call a user defined function to verify input. </p>
  
  <p>Im getting the following error when I compile -- undefined reference to WinMain, [Error] Id returned 1 exit status I'm using Dev C++ as an IDE</p>
  
  <pre><code>#include &lt;iostream&gt; //for I/O
  #include &lt;iomanip&gt; //for formatting output
  
  using namespace std;
  
  
  const string PROGRAM_DESCRIPTION = "Program will calculate the amount "
  "accumulated every month you save, \nuntil you reach your goal. ";
  const string ENTER_DOLLAR_AMOUNT_MONTHLY = "Enter the dollar amount to be "
  "saved each month: ";
  
  
  
  
  int main()
  {
      double dollarSavedPerMonth; 
  
  
      //displays program description
      cout &lt;&lt; PROGRAM_DESCRIPTION &lt;&lt; endl &lt;&lt; endl;
  
      //Prompts user to enter dollar amount to be saved monthly, will validate
      //input by calling VerifyDollar
      dollarSavedPerMonth = VerifyDollar(ENTER_DOLLAR_AMOUNT_MONTHLY);
      cout &lt;&lt; endl;
  
  
  
      return 0;
  }
  
  
  
  
  double VerifyDollar (string Prompt)
  {
      const string INVALID_DOLLAR_AMOUNT = "Invalid amount, re-enter monthly "
      "savings amount.";
      double dollarSaved;
  
      cout &lt;&lt; Prompt;
      cin &gt;&gt; dollarSaved;
  
      while (dollarSaved &lt; 5 || dollarSaved &gt; 5000)
      {
            cout &lt;&lt; INVALID_DOLLAR_AMOUNT;
            cout &lt;&lt; endl;
            cout &lt;&lt; Prompt;
            cin &gt;&gt; dollarSaved;
      }
      return dollarSaved;
  }
  </code></pre>