title: Change main method in Code::Blocks?
body: <p>I switched from <em>main</em> to <em>WinMain</em> and Code::Blocks is searching for <em>main</em>. How do I fix this? This is probably a stupid question but I can't find it online.</p>
  
  <p><strong>UPDATE @JBL</strong></p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "def.h" //This defines a few things
  #include &lt;windows.h&gt;
  #include &lt;gl/gl.h&gt;
  #include "glcontext.h" //This defines some OpenGL/Win32 functions
  
  using namespace std;
  
  BOOL WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
  int nCmdShow)
  {
  
   }
  </code></pre>