How I can compile this C++ code that fails with "'::main' must return 'int'"? [migrated]
- by krisu
I have tried to find a solution that make batch file start flashing on taskbar and only good solution was this post on Stack Overflow.
But I can't compile the code with WinGW or anything else to EXE, only getting this error:
hello.cpp:6:32: error: '::main' must return 'int'
Right now, I'm using TDM-GCC to compile code, because it's bit better...
Can somebody give me code that actually works or even better compile it to EXE already?
P.S. Even more better if somebody could compile this Delphi code, because I can't find any software that's free.