Subject: Re: problems building GUI application
From: [email-masked] (Earnie Boyd)

4 Nov 1997 13:28:20 -0800
Message-ID: <[email-masked]>
Content-Type: text/plain
To: [email-masked]
Cc: [email-masked]

>Date: Tue, 04 Nov 1997 18:13:39 +1100
>From: Gaffer <[email-masked]>
>To: [email-masked]
>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----
[email-masked]
------ooo0O--O0ooo-------

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".