title: C Programming undefined reference to `WinMain@16'
body: <p>I'm trying to compile following code using gcc (tdm-1) 4.7.1 with notepad, and command prompt on windows 10. previously add bin folder path to global variables,but when i try to compile i get following error " undefined reference to `WinMain@16'".However same code works fine with codeblocks!.</p>
  
  <p>PS: I compile it like this "cd /d path of code then gcc filename.c"</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  
  int main(){
  
      printf("Hello world");
      return 0;
  }
  </code></pre>