Date: Fri, 17 Feb 2006 21:54:53 -0500 From: Tom Grove <freebsd@voidmain.net> To: freebsd-questions@freebsd.org Subject: getline function Message-ID: <43F68C7D.9010403@voidmain.net>
next in thread | raw e-mail | index | archive | help
Is there anyone who can compile a program using the getline() function?
Here is a really simple program to recreate the following error:
##Error##
/var/tmp//ccvYIi4C.o(.text+0x26): In function `main':
: undefined reference to `getline'
##Error##
##Source File##
#include <stdio.h>
int main() {
char line[10];
getline(&line, 10);
printf("%s", line);
return 0;
}
## Source File##
-Tom
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43F68C7D.9010403>
