delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/24/13:05:52

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

Peter A. Castro <doctor AT fruitbat DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019