c:/TDM-GCC-32/bin/../lib/gcc/mingw32/5.1.0/../../../libmingw32.a(main.o):main.c:(.text.startup+0xa7): undefined reference to `WinMain@16'
Strictly speaking, this forum is for issues related to Visual C++ use.
If you are having problems with gcc, mingw, etc. then you should go to
a forum dedicated to using those tools.
- Wayne