Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Win32 API and MinGW

Name: Anonymous 2010-03-24 20:44

Hey /prog/,

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.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List