Error compiling Win32 API GUI code with MinGW
- by Eric Larsen
Hey guys, this is my first post.
I'm just getting started with win32 API programming in C++ and I'm having trouble compiling the winnie tutorial (http://www.relisoft.com/win32/winnie.html) with MinGW.
My input and output:
C:\Users\Eric\Projects g++ winnie.cpp -o winnie.exe
/mingw/lib/libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to 'WinMain@16'
collect2: ld returned 1 exit status
Any help would be very much appreciated.