I started recently with programming and this is what I wrote:
#include <stdio.h>
int main() {
int a,b,c;
a=2;
b=7;
c=a+b;
printf ("c vale %d\n;c");
return 0;
}
Something simple I thought but then this error tends to appear:
C:/MinGW/i686-pc-mingw32/lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o):crt0_c.c:(.text+0x3c): undefined reference to `WinMain@16'
can anyone explain me step by step what should I fix?