title: How I can compile this C++ code that fails with "'::main' must return 'int'"?
body: <p>I have tried to find a solution that make batch file start flashing on taskbar and only good solution was <a href="https://stackoverflow.com/questions/3560018/triggering-taskbar-button-flash-from-batch-file">this post on Stack Overflow</a>.</p>
  
  <p>But I can't compile the code with WinGW or anything else to EXE, only getting this error:</p>
  
  <pre><code>hello.cpp:6:32: error: '::main' must return 'int'
  </code></pre>
  
  <p>Right now, I'm using <a href="http://tdm-gcc.tdragon.net/" rel="nofollow noreferrer">TDM-GCC</a> to compile code, because it's bit better...</p>
  
  <p>Can somebody give me code that actually works or even better compile it to EXE already?</p>
  
  <p>P.S. Even more better if somebody could <a href="https://stackoverflow.com/questions/3560018/triggering-taskbar-button-flash-from-batch-file/3560079#3560079">compile this Delphi code</a>, because I can't find any software that's free.</p>
  
  <p>EDIT: I just go hell with it and downloaded Delphi trial and complied the delphi code and it worked! Sorry guys for bugging you unnecessarily :/ You can close this.</p>