X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Eric Blake Subject: Re: undefined reference to =?utf-8?b?YF9nZXRsaW5lJw==?= in linking Date: Tue, 13 Mar 2007 23:34:11 +0000 (UTC) Lines: 22 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Kristian Hermansen gmail.com> writes: > administrator ubuntu-khermans-desk:/tmp$ i586-mingw32msvc-gcc > getline-test.c /tmp/ccCRN0HZ.o:getline-test.c:(.text+0x5f): undefined > reference to `_getline' > collect2: ld returned 1 exit status > > > I filed a bug with Ubuntu, as I am unsure if this is a distro-specific So your Linux-hosted mingw cross-compiler doesn't work on ubuntu. And this would have _what_ to do with cygwin, exactly? By the way, getline is not standardized (yet; the Austin group will be adding it to the next version of POSIX, but that won't be for another year or two). mingw probably doesn't have it. And cygwin has it, but it was relatively recently that it was added. You may also be interested in the gnulib project, which includes a getline replacement for lacking platforms. -- Eric Blake -- 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/