This is the mail archive of the
cygwin-talk
mailing list for the cygwin project.
FW: undefined reference to `_getline' in linking
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "Thread TITTTL'd!" <cygwin-talk at cygwin dot com>
- Date: Wed, 14 Mar 2007 00:32:20 -0000
- Subject: FW: undefined reference to `_getline' in linking
- Reply-to: The Cygwin-Talk Maiming List <cygwin-talk at cygwin dot com>
On 13 March 2007 23:06, Kristian Hermansen wrote:
> <snip>
*sip*
> administrator@ubuntu-khermans-desk:/tmp$ cat getline-test.c
> #include <stdio.h>
>
> int main() {
> FILE *fp;
> char *line = NULL;
> size_t len = 0;
> fp = fopen("/etc/motd", "r");
> getline(&line,&len,fp);
> }
> administrator@ubuntu-khermans-desk:/tmp$ i586-mingw32msvc-gcc
*sip*
> getline-test.c /tmp/ccCRN0HZ.o:getline-test.c:(.text+0x5f): undefined
> reference to `_getline'
*sip*
> collect2: ld returned 1 exit status
> </snip>
>
> I filed a bug with Ubuntu, as I am unsure if this is a distro-specific
> problem or something upstream:
> https://bugs.launchpad.net/ubuntu/+source/mingw32/+bug/92072
<throws glass away, smashes end of neck off bottle> GLUG GLUG GLUG GLUG GLUG
aaaaaahhhh....
cheers,
DaveK
--
Can't think of a witty .sigline today....