title: Undefined reference to 'WinMain@16' C error
body: <p>I am using Eclipse (C programming) and I have come up with this code but every time I build it, I get the error saying, "Undefined Reference to 'WinMain@16'". I have spent over 2 hours trying to solve this problem but I can't figure out my where my error is. Can anyone help?</p>
  
  <p>This is the code:</p>
  
  <pre class="lang-c prettyprint-override"><code>#include &lt;stdio.h&gt; 
  
  int main(void)
  {
      int input;
  
      printf("Please enter an integer:\n");
      scanf("%d",&amp;input);
      int temp = input;
  
      while(input&lt;=temp+10)
      {
          printf("%d ",input);
          input++;
      }
  
      printf("\n");
  
      return 0;
  }
  </code></pre>