This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc problem?


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

-----------begin snippet-------------
#include <stdio.h>
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-------------


Carlo Florendo
Astra (Philippines), Inc.

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]