undefined reference to `WinMain' : <p>I am taking a course in c++ and I've copied the code and done exactly the same as the tutor in the course did in the lecture, however when I do so I get a long error "...undefined reference to `WinMain'" and I don't know what to do. </p>

<p>I am using Eclipse Neon on Windows 10 (and Cygwin, I don't know if it's relevant) and this is my code:</p>

<p>`</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;SDL.h&gt;
using namespace std;

int main() {

cout &lt;&lt; "!!!Hello World!!!" &lt;&lt; endl; // prints !!!Hello World!!!
return 0;
</code></pre>

<p>}
`
The code works and runs without the "#include ", but when I add this line of code the error pops up when I run it (so I guess that's where the problem is). When the tutor in the course run this code it works and prints out the text correctly. 
Can someone please tell me how I get rid of this error and get this simple program to run?</p>
