title: C++ undefined reference to WinMain@16 (Code::Blocks)
body: <p>I'm learning C++ with Code::Blocks, and everytime i try to create a new class, I get an error message saying:</p>
  
  <pre><code>undefined reference to `WinMain@16'
  </code></pre>
  
  <p>Here's the code I've been using:</p>
  
  <p>Main Class</p>
  
  <pre><code>#include "Lime.h"
  #include &lt;iostream&gt;
  using namespace std;
  int main()
  {
      Lime lime;
      return 0;
  }
  </code></pre>
  
  <p>Lime Class (.ccp):</p>
  
  <pre><code>#include "Lime.h"
  #include &lt;iostream&gt;
  using namespace std;
  Lime::Lime()
  {
      cout&lt;&lt;"Hi!";
  }
  </code></pre>
  
  <p>Lime Header (.h):</p>
  
  <pre><code>#ifndef LIME_H
  #define LIME_H
  class Lime
  {
      public:
          Lime();
  };
  #endif
  </code></pre>
  
  <p>If someone knows, how to fix it, please, tell me!</p>