It seems to be a problem with this specific machine, ssh'd into another machine with gcc4 and it worked. Odd because our entire CS department uses this machine to do lots of work on, funny that there is such a problem...
This is all on a Solaris machine. I grepped stdio.h on my local linux machine (which I'm sure has all the up to date libraries) and it didn't find any reference to getline. The man page for stdio doesn't mention it either! I suppose I will look for another solution for the time being.
Thanks...
Well, the rest of my code is irrelevant, as the symbol is undefined. I apologize for the lack of code tags. This is the function that I'm trying to call:
http://www.gnu.org/software/libc/manual/html_node/Line-Input.html
Yes, the problem does seem to be that the function isn't defined in...
The top of my file I'm compiling looks like this:
#include <stdio.h>
#include <string.h>
int main(int argc, char* argv[])
When I compile this is my output:
$ gcc -o stage1 proj3.c
Undefined first referenced
symbol in file
getline...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.