delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/11/08:31:20

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
X-Authentication-Warning: localhost.localdomain: ronald owned process doing -bs
Date: Fri, 11 Apr 2003 13:47:26 +0200 (CEST)
From: Ronald Landheer-Cieslak <ronald AT landheer DOT com>
X-X-Sender: ronald AT localhost DOT localdomain
To: Andrey Romanenko <andrew AT eq DOT uc DOT pt>
cc: cygwin AT cygwin DOT com
Subject: Re: g77 + gcc + flex + bison woes
In-Reply-To: <Pine.LNX.4.44.0304111046130.22292-100000@nectar.eq.uc.pt>
Message-ID: <Pine.LNX.4.44.0304111344030.18674-100000@localhost.localdomain>
MIME-Version: 1.0

On Fri, 11 Apr 2003, Andrey Romanenko wrote:
> Could you please help me out with the following:
> I have an application that has portions in C and Fortran. Besides, the
> configuration parser is implemented using flex and bison. It compiles and
> run fine in Linux. I am able to build it in the latest cygwin without a
> single warning. Yet, when I run it, the application hangs, apparently it
> doesn't even make it to main(). I have already tried to shuffle the
> order in which I link the libraries (my own, g2c, fl) but so far I haven't
> been able to fix the rpoblem. Strace reports that the application is
> waiting for console input. The program can be terminated by ctrl-c or
> ctrl-d. I suspect the flex library is at fault... Does anybody know
> a solution for this? Thank you very much.
You're giving people very little to go on, except that you say it waits 
for console input.. (^D is an EOF, IIRC, which would tell your program 
it's at the end of an stdin file)..

Scanners produced by Flex usually take stdin as input by default..

Are you sure your main() is never reached? (e.g. did you put a 
printf("ping!\n");
at the beginning to see?)

If that is the case, are you sure you're using the right main()?

rlc



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