| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| X-MimeOLE: | Produced By Microsoft Exchange V6.0.6375.0 |
| content-class: | urn:content-classes:message |
| MIME-Version: | 1.0 |
| Subject: | undefined reference to `_getline' |
| Date: | Thu, 23 Oct 2003 16:44:49 -0400 |
| Message-ID: | <3D848382FB72E249812901444C6BDB1DE4DF0F@exchange.timesys.com> |
| X-MS-Has-Attach: | |
| X-MS-TNEF-Correlator: | |
| From: | "Robb, Sam" <sam DOT robb AT timesys DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id h9NKkbTK016777 |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |