From: Ioannis V. <no...@ho...> - 2002-09-07 19:51:32
|
> -----Original Message----- > From: min...@li... > [mailto:min...@li...] On Behalf Of > Marc Kealy > Sent: Saturday, September 07, 2002 8:59 PM > To: Min...@li... > Subject: Re: [Mingw-users] MINGW 2.0.0-2 More bad news > > > // Hello world for win32 > #include <windows.h> > > int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR > lpCmdLine, int nCmdShow) > { > MessageBox(0, "Hello World!", "Message", MB_OK); > return 0; > } Thanks a lot. Unfortunately: > Executing: C:\Program Files\ConTEXT\ConExec.exe "g++" "temp.cpp" -o temp -std=c++98 -pedantic-errors -Wall -fexpensive-optimizations -O3 -ffloat-store -mcpu=pentiumpro > Execution finished. With -ansi -O2 the same. With previous versions using -ansi such code did not compile (-ansi for g++ meant ANSI C++). Thanks for the code. Unfortunately it seems there is not a switch about strict ANSI C++ compliance. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |