[Dev-C++] possible bug of MinGW compiler
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Luigi S. <gi...@li...> - 2001-10-20 18:25:20
|
Hi all, I tried the small program named "test.exe" (source is "test.c" and is attached to this message) using the file "in.txt" (also attached) as its input. I have used the MinGW compiler shipped with Dev-C++ 4.0 (the output of the command: "gcc -v" says "gcc version 2.95.2 19991024 (release)"), to build the executable on a Win98 SE equipped system. To my surprise, I found that when the input of "test.exe" comes "directly" from stdin (I mean without redirection) there is no output! As usual on DOS systems, I used Ctrl+z to type EOF. The program works as expected when input comes from a file or "indirectly" from stdin. Is there something wrong in the program or is it a bug of the compiler? Thank you for your attention. -- gisan gi...@li... |