title: The Windows application cannot be built although it's the code is from Microsoft
body: <p>I'm new to making Windows applications. I follow <a href="https://docs.microsoft.com/en-us/windows/win32/learnwin32/your-first-windows-program" rel="nofollow noreferrer">Microsoft's tutorial</a>.</p>
  <p>When I build the application, an error occurs. It says:</p>
  <blockquote>
  <p>undefined reference to `WinMain@16'</p>
  </blockquote>
  <p>I don't know how to solve this question. <a href="https://docs.microsoft.com/en-us/windows/win32/learnwin32/your-first-windows-program" rel="nofollow noreferrer">The tutorial</a>'s code also cannot build successfully.</p>
  <p>The environment:</p>
  <li>Windows version: Windows 10 21H2</li>
  <li>C++ language standard: C++ 20</li>
  <li>windows.h: from g++</li>
  <li>IDE: CLion 2020.3</li>