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
X-Sent: 12 Jun 2002 15:06:51 GMT
Message-ID: <010b01c21222$46cc5720$050202ca@apple>
From: "Xinan Zhou" <zhoux@lifepredictiontech.com>
To: "prateek" <arora.prateek@med.ge.com>, <cygwin@cygwin.com>,
   "Andre Bleau" <bleau@igb.umontreal.ca>
References: <4.3.2.7.0.20020612103250.02005ea0@irispavp.igb.umontreal.ca> <026501c21221$d4f5e260$afcb4603@gsoi.med.ge.com>
Subject: Re: strange behaviour of cygwin build executable
Date: Wed, 12 Jun 2002 11:03:13 -0400
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 V5.50.4133.2400

Earnie Boyd wrote:

> --- Michael Lemke <ba0571@mail.bnv-bamberg.de> wrote:
> > I've recently upgraded my b20 installation to the latest net release.  I
am
> > really impressed.  Great job!
I found similar one in the archive.

> >
> > Here's a problem though that wasn't there in the b20 release.  Consider
this
> > simple prog:
> >
> > Work> cat test.f
> >         character string*20
> >         read( 5 , '(a)' ) string
> >         print *, string
> >         end
> >
> > If I compile this with
> >
> >    g77 -mno-cygwin test.f
> >
> > and run it in a bash window the program never reads the input
> > from the keyboard.  Run in a simple MS-DOS window the prog works
> > correctly.  The same also happens with READ(*,'(A)') ...
> > However,
> >
> >    echo otto | ./a
> >
> > does work in bash.
> >
> > Oh, to make Fortran work at all with mingw I copied libg2c.a from
> > Mumit Khan's site as that was the only mingw version I could find.
> > However, the stuff there does not seem to be the same that comes
> > with the net release in the /usr/lib/mingw directory.
> >
> > Any ideas?
> >
>
> As for the read problem, how is your CYGWIN environment variable set?  You
> can't communicate properly with non-Cygwin programs with tty mode set.

It isn't set at all.

>
>
> As for MinGW specific libraries, I will eventually get a round tuit.  The
> w32api and the mingw runtime are now released as separate packages from
Cygwin
> and when the update happens the list will be informed.

Is there a way that I can compile the stuff myself?   I still don't see what
I need to
to do so.   Plain gcc package won't do I suppose.

And how does mingw as it comes with the net release relate to what is
on www.mingw.org?  Are these separate projects?  I really find this
confusing.

What I really like to do is build executables *under cygwin* that run
without
cygwin1.dll.  I am not really interested in having a gcc (executable) that
works
without cygwin1.dll.


Thanks for any insight,
Michael

----- Original Message -----
From: "prateek" <arora.prateek@med.ge.com>
To: <cygwin@cygwin.com>; "Andre Bleau" <bleau@igb.umontreal.ca>
Sent: Wednesday, June 12, 2002 11:00 AM
Subject: strange behaviour of cygwin build executable


> Hi friends
> I have wriiten in the a very simple program to print a echo statement by
> system command.
>
> #include <stdlib.h>
>
> void main()
> {
>   system(" echo   this is a Test Program ");
> }
>
> I compiled gcc -o test test.cxx -mwindows
> it generate test.exe
>
> WhenI run it print " this is a Test Program " , the same exeutable when I
> run on my friends computer with same operating system and configuration ,
> nothing is come up. with same cygwin1.dll.
> May I know why it  Showing such a strange behaviour.
> Thanks
> With Regards
> Prateek
>
>
>
>
> --
> 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/
>
>
>



--
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/

