This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: problems building GUI application
- To: gaffer at zip dot com dot au
- Subject: Re: problems building GUI application
- From: "Earnie Boyd" <earnie_boyd at hotmail dot com>
- Date: Tue, 04 Nov 1997 06:09:45 PST
- Cc: gnu-win32 at cygnus dot com
>Date: Tue, 04 Nov 1997 18:13:39 +1100
>From: Gaffer <gaffer@zip.com.au>
>To: gnu-win32@cygnus.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@hotmail.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@cygnus.com" with one line of text: "help".