From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2626 invoked by alias); 20 Jul 2002 19:54:30 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 2616 invoked from network); 20 Jul 2002 19:54:29 -0000 Received: from unknown (HELO redhat.com) (66.30.22.225) by sources.redhat.com with SMTP; 20 Jul 2002 19:54:29 -0000 Received: by redhat.com (Postfix, from userid 201) id 46ABA1C359; Sat, 20 Jul 2002 15:54:32 -0400 (EDT) Date: Sat, 20 Jul 2002 18:57:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: g++ (v.3.1.1-4) -mno-cygwin with a hello world sample crashes oddly Message-ID: <20020720195432.GA31078@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23.1i X-SW-Source: 2002-07/txt/msg01574.txt.bz2 On Sat, Jul 20, 2002 at 04:16:48PM +0900, Dylan Cuthbert wrote: > >Hi all, Here is a very simple test program I am compiling with >g++ -mno-cygwin -c test.cpp -o test.exe > >--- snip --- > >#include > >int main (int argc, char *argv[]) >{ > int frog = 10; > int blob = 20; > > for ( int i = 0; i < 10; i++ ) > { > std::cout << "hello world" << frog << " " << blob << std::endl; > > frog += blob; > > } > > return(0); >} > >--- snip --- > >When I run this from a command.com style window, a very strange thing >happens - the text cursor starts jumping about the screen in a repeated >pattern (I'm not joking, I thought it was a virus or something at first). >When I run it from rxvt, rxvt just freezes on me after I press ctrl-c. > >In both cases I have to use the task manager to close down a task called >ntvdm.exe which is using up 50% of the cpu time. If I end that task the >prompt returns to rxvt (or the command.com shell). I would suspect that you are not running the program as ./test and are, instead running some other random "program" named test. It's usually a good idea not to use 'test' as a command name since UNIX systems have a test program installed in /usr/bin. cgf -- 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/