When I compile the example hello world that brings eclipse compiles me well
but if I create it from scratch in another project I get this error
11:42:22 **** Rebuild of configuration Debug for project hello 2 ****
Info: Internal Builder is used for build
g++ -O0 -g3 -Wall -c -fmessage-length=0 -o "src\hello 2.o" "..\src\hello 2.cpp"
g++ -o "hello 2.exe" "src\hello 2.o"
c:/mingw/bin/../lib/gcc/mingw32/4.9.3/../../../libmingw32.a(main.o):(.text.startup+0xa7): undefined reference to 'WinMain@16'
collect2.exe: error: ld returned 1 exit status
11:42:23 Build Finished (took 422ms)