undefined reference to 'setlinebuf'
<p>If I try to run the following simple code under TDM_GCC on Windows 10,</p>

<pre><code>#include&lt;stdio.h&gt;

 int main(){

  double input;

   setlinebuf(stdout);

    printf("Enter Your Input -");
    scanf("%If", &amp;input);
    printf("Entered name is %f", input);

 return 0;
}
</code></pre>

<p>It compiles (via gcc) with an error which says that - undefined reference to 'setlinebuf'. I am using setlinebuf to have the buffer only buffer lines-wise. </p>