Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Content-Type: text/plain; charset="iso-8859-1" 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" To: Content-Transfer-Encoding: 8bit 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 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/