When attempting to run a file, I get the following:
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libmingw32.a(main.o):main.c|| undefined reference to `WinMain@16|
||=== Build finished: 1 errors, 0 warnings ===|
this is the build log:
-------------- Build: Debug in delta3d ---------------
mingw32-g++.exe -L..\..\..\..\..\Delta3D\REL-2.5.0\inc -LC:\Delta3D\REL-2.5.0\inc -o bin\Debug\delta3d.exe obj\Debug\main.o -lgdi32 -luser32 -lkernel32
c:/program files/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to `WinMain@16
'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
Will someone please tell me what I'm doing wrong? Ty in advance
EDIT: This happens even with a blank file