From: earnie_boyd AT hotmail DOT com (Earnie Boyd) Subject: Re: problems building GUI application 4 Nov 1997 13:28:20 -0800 Message-ID: <19971104140948.24347.qmail.cygnus.gnu-win32@hotmail.com> Content-Type: text/plain To: gaffer AT zip DOT com DOT au Cc: gnu-win32 AT cygnus DOT com >Date: Tue, 04 Nov 1997 18:13:39 +1100 >From: Gaffer >To: gnu-win32 AT cygnus DOT com >Subject: problems building GUI application > >I am having problems getting a working GUI application with cygwin32 :( > >here is the test.cpp file i am trying to compile >-------------------------------------------------------- >// windows test >#include > >int APIENTRY WinMain(HINSTANCE hInst,HINSTANCE hPrevInst,LPSTR >lpCmdLine,int nCmdShow) >{ > MessageBox(NULL,"blah","blah",MB_OK); > return 0; >} >-------------------------------------------------------- > >this is the command line i use to build it: >"g++ -o test.exe test.cpp -Wl,--subsystem,windows -lcygwin -lkernel32 >-lgdi32 -luser32" > remove the -lcygwin and -lkernel32. These are already linked in as specified by the specs file. Linking them again causes problems. - \\||// ---o0O0--Earnie--0O0o---- -earnie_boyd AT hotmail DOT com- ------ooo0O--O0ooo------- ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".