Dananjaya86
October 18th, 2009, 05:51 AM
/tmp/ccGV15x0.o: In function `main':
blowup4.c:(.text+0x2e): undefined reference to `fpurge'
collect2: ld returned 1 exit status
this problem occurs when fpurge(stdin) is used to delete the previously stored value taken from standard input. (keyboard)
when fflush(stdin) is used i have to type CTRL+D to enter value.pressing ENTER will cause the variable to store and display ENTER (Means a space.)
gcc version:
gcc.real (Ubuntu 4.3.3-5ubuntu4) 4.3.3
OS:
Ubuntu 9.04
Linux Kernel Version:
2.6.28-14-generic
blowup4.c:(.text+0x2e): undefined reference to `fpurge'
collect2: ld returned 1 exit status
this problem occurs when fpurge(stdin) is used to delete the previously stored value taken from standard input. (keyboard)
when fflush(stdin) is used i have to type CTRL+D to enter value.pressing ENTER will cause the variable to store and display ENTER (Means a space.)
gcc version:
gcc.real (Ubuntu 4.3.3-5ubuntu4) 4.3.3
OS:
Ubuntu 9.04
Linux Kernel Version:
2.6.28-14-generic