directive0
Very Active Member
Sadly no, that didn't help.
I'm going to try building it again and will look at the config.mk again, maybe there's something in there I missed. I have a feeling the
warning I got has something to do with it.
*edit
I read that adding
before #include <stdio.h> would help, but sadly it didn't change the outcome when I tried to compile. I still get an error for "getline". I've read that you can interchange it with the fgets for C? Should I try that? I guess I will and see what happens.
*edit edit
No. It really didn't like that.
I'm going to try building it again and will look at the config.mk again, maybe there's something in there I missed. I have a feeling the
Code:
CC stest.c
stest.c: In function ���main���:
stest.c:86:15: warning: implicit declaration of function ���getline��� [-Wimplicit-function-declaration]
while ((n = getline(&line, &linesiz, stdin)) > 0) {
^
warning I got has something to do with it.
*edit
I read that adding
Code:
#define _GNU_SOURCE
before #include <stdio.h> would help, but sadly it didn't change the outcome when I tried to compile. I still get an error for "getline". I've read that you can interchange it with the fgets for C? Should I try that? I guess I will and see what happens.
*edit edit
No. It really didn't like that.
Last edited: