title: undefined reference to getdelim() error (Windows) (C Language)
body: <p>I am trying to work with <code>getdelim()</code> function which apperantly is the preferred method with <code>getline()</code> over <code>fgets()</code>. However, when I try to run the code below, I get <strong>undefined reference to getdelim()</strong> error. </p>
  
  <p>I don't think it has anything to do with the code but rather the gcc version that I am using. So to the cmd I typed <code>gcc -v</code> and apperantly I have <code>gcc version 8.1.0 (x86_64-win32-seh-rev0, Built by MinGW-W64 project)</code></p>
  
  <p>I am not sure how old it is or if that's the problem. If so, what version of the gcc should I use and can I solve this with adding some fancy macros?</p>
  
  <p>Code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      int size = 10;
      char *string;
  
      printf ("Please enter a string: ");
  
      string = (char*)malloc(size);
  
      getdelim (&amp;string, &amp;size, '-', stdin);
  
      printf( "%s\n", string );
  
      return 0;
  }
  </code></pre>