Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <01ca01c29108$2fe1faa0$437517d2@astra03> From: "Carlo Florendo" To: Subject: gcc problem? Date: Thu, 21 Nov 2002 10:46:26 +0800 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.00.2919.6700 Hello, Ever since I installed a newer cygwin, I've encountered problems which I didn't encounter before. First, there was the "ls -l"problem which has not yet been resolved (and which is threaded as "ls problem" in this list.). Just today, i discovered something wrong while using gcc. I compiled the snippet below and it's supposed to prompt me for input twice. However, I only get prompted once. (Using the visual c++ compiler, the borland 5.5 compiler gives the correct results) My gcc version is 2.95.3-5. Cygwin version is The cygwin1.dll version I am using is 1.3.15-cygwin-1-3-15-1. -----------begin snippet------------- #include int main() { int n; char string[80]; for ( n=0 ; n<2 ; n++ ) { printf( "Enter some words: " ); scanf( "%s", string); printf( "The first word you entered is : %s\n", string ); fflush ( stdin ); } return 0; } -----------end snippet------------- Thanks! ------------------------------------ Carlo Florendo Astra (Philippines), Inc. Email: carlo AT astra DOT ph Web: http://www.astra.ph -- 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/