I'm currently having some problems with getline() in c. I know it's not a standard C function, however I am using the proper resources according to what I've seen online.
I have both:
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
However I am still having problems compiling, it gives me this output:
main.c: In function 'read-file':
main.c:46:17: warning: implicit declaration of function 'getline' [-Wimplicit-function-declaration]
C:\Users\Miguel\AppData\Local\Temp\cc6aYESe.o:main.c:(.text+0x85): undefined reference to `getline'
collect2.exe: error: ld returned 1 exit status
I can't seem to figure out what's wrong, I've seen several problems like this, however no solution seems to apply.