Mail Archives: cygwin/1997/11/04/13:28:20
>Date: Tue, 04 Nov 1997 18:13:39 +1100
>From: Gaffer <gaffer AT zip DOT com DOT au>
>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 <windows.h>
>
>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".
- Raw text -