title: Error while compiling using Dev-C++
body: <p>I'm trying to compile the following code using Dev-C++ on a WinXP machine:</p>
  
  <pre><code>#include &lt;windows.h&gt;
  
  int APIENTRY _tWinMain(
      HINSTANCE hInstance,
      HINSTANCE hPrevInstance,
      LPTSTR    lpCmdLine,
      int       nCmdShow
  )
  {
      MSG msg;
      while (GetMessage(&amp;msg, NULL, 0, 0))
      return 0;
  }
  </code></pre>
  
  <p>I get the following error message; </p>
  
  <blockquote>
    <p>C:\crossdev\src\mingw-w64-v3-git\mingw-w64-crt\crt\crt0_c.c   undefined
    reference to `WinMain@16'</p>
  </blockquote>
  
  <p>I've search for the error message but I don't understand what's wrong.</p>
  
  <p>Thanks in advance.</p>
  
  <p>PS: I'm a real noob at c++ so sorry if it seems obvious for you guys.</p>