Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <012b01c293e4$19141bd0$78d96f83@pomello>
From: "Max Bowsher" <maxb@ukf.net>
To: "Peter A. Castro" <doctor@fruitbat.org>
Cc: <cygwin@cygwin.com>
References: <Pine.LNX.4.21.0211240935060.7231-100000@gremlin.fruitbat.org>
Subject: Re: impure_ptr/Mingw and Cygwin
Date: Sun, 24 Nov 2002 18:05:40 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Peter A. Castro <doctor@fruitbat.org> wrote:

> On Sat, 23 Nov 2002, Max Bowsher wrote:
>> $ gcc -g foo.c -mno-cygwin -mwindows -o foo -liberty -lmingw32
>> $ ./foo.exe > x
>> Hello World 2
>> $ cat x
>> Hello World
>>
>> How odd. I get the stderr output just fine.
>
> Yes, very interesting.  I'll have to see if perhaps stderr output is
> appearing and the command prompt is simple overlaying it after the
> command returns.  BTW, I was running the program from a regular DOS
> Prompt, not a bash shell (not that that should make a big difference
> for console I/O).
>
>> Why the -mwindows -liberty -lmingw32 switches? They are unnecessary.
>
> Because that's how setup.exe is built (that's where I got the above
> switches from).

-liberty ? Not on my computer.

-lmingw32 ? I think that's just one of the redundant things libtool like to
add.

-mwindows ? Sparsely documented, if at all. I *think* it is to link as a
Windows GUI exe rather than a Windows console exe.

So, I think you can lose all 3 of these.

--
Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

