Error compiling Win32 API GUI code with MinGW
Posted
by Eric Larsen
on Stack Overflow
See other posts from Stack Overflow
or by Eric Larsen
Published on 2010-03-25T01:07:34Z
Indexed on
2010/03/25
1:13 UTC
Read the original article
Hit count: 512
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.
© Stack Overflow or respective owner