In eclipse I am trying to build a C project and after building it I get this error:
undefined reference to 'WinMain@16'
though I did install mingw compiler and add its path to the environment variables.
I tried to delete it and install the mingw compiler again, but nothing happens.