Open GoogleCodeExporter opened 8 years ago
[deleted comment]
[deleted comment]
I have this problem too.
MinTTY: 1.0.3, 1.1.3
GCC: 4.7.2
OS: Windows 7, Windows 8
MinGW/MSYS: mingw-get-inst-20120426
CodePage: UTF-8; CP1251; CP866
"GNU gdb"
in MinTTY:
sdafsadf
(gdb) Undefined command: "sdafsadf". Try "help".
sadfsdaf
(gdb) Undefined command: "sadfsdaf". Try "help".
in CMD:
(gdb) sadfsadf
Undefined command: "sadfsadf". Try "help".
(gdb) sadfsadf
Undefined command: "sadfsadf". Try "help".
(gdb)
Sorry for my English.
Original comment by Muhamatn...@gmail.com
on 22 Oct 2013 at 6:40
I have solved this problem. I should use "fflush(stdout)".
Such as:
// m.c
#include <stdio.h>
int main(void)
{
char str[50];
printf("Press string: ");
fflush(stdout);
scanf("%s", str);
printf("Your string is %s.\n", str);
return 0;
}
Original comment by boy3...@gmail.com
on 7 Nov 2013 at 11:04
Original issue reported on code.google.com by
boy3...@gmail.com
on 14 Oct 2013 at 3:17