This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
undefined reference to `_getline'
- From: "Robb, Sam" <sam dot robb at timesys dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 23 Oct 2003 16:44:49 -0400
- Subject: undefined reference to `_getline'
All,
In porting soem code to run under Cygwin, I ran
into a problem finding getline(). The following
code snippet demonstrates the problem:
#include <stdio.h>
int main(int argc, char** argv) {
char* a;
size_t b;
FILE* c;
getline(&a, &b, c);
return 0;
}
Creating the above file as gltest.c and and compiling
results in the following:
$ gcc gltest.c
/tmp/ccWTYEwq.o(.text+0x33):gltest.c: undefined reference to `_getline'
collect2: ld returned 1 exit status
Am I missing something here? getline() is declared
in stdio.h, and should be found as part of cygwin1.dll,
right?
-Samrobb
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/