windows - Error while compiling using Dev-C++ -


i'm trying compile following code using dev-c++ on winxp machine:

#include <windows.h>  int apientry _twinmain(     hinstance hinstance,     hinstance hprevinstance,     lptstr    lpcmdline,     int       ncmdshow ) {     msg msg;     while (getmessage(&msg, null, 0, 0))     return 0; } 

i following error message;

c:\crossdev\src\mingw-w64-v3-git\mingw-w64-crt\crt\crt0_c.c undefined reference `winmain@16'

i've search error message don't understand what's wrong.

thanks in advance.

ps: i'm real noob @ c++ sorry if seems obvious guys.

try replacing _twinmain winmain.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -