From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15217 invoked by alias); 13 Jun 2005 17:50:35 -0000 Mailing-List: contact cygwin-talk-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: cygwin-talk-owner@cygwin.com Reply-To: The Cygwin-Talk Malingering List Received: (qmail 15204 invoked by uid 22791); 13 Jun 2005 17:50:29 -0000 Received: from slinky.cs.nyu.edu (HELO slinky.cs.nyu.edu) (128.122.20.14) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 13 Jun 2005 17:50:29 +0000 Received: from localhost (localhost [127.0.0.1]) by slinky.cs.nyu.edu (8.12.10+Sun/8.12.10) with ESMTP id j5DHoQW3024691; Mon, 13 Jun 2005 13:50:26 -0400 (EDT) Date: Tue, 14 Jun 2005 07:52:00 -0000 From: Igor Pechtchanski Reply-To: The Cygwin-Talk Maiming List To: Dave Korn cc: The Cygwin-Talk Maiming List Subject: RE: Undefined references In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-q2/txt/msg00419.txt.bz2 On Mon, 13 Jun 2005, Dave Korn wrote: > ----Original Message---- > >From: Alireza Ghasemi > >Sent: 13 June 2005 12:45 > > > Hello, > > When compiling libyahoo2 everything went OK.but when I tried to compile a > > program with it,I got a very very big list of undefined references like > > this > >> > > " > > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libyahoo2.a(libyahoo2.o)(.text+0x38): In function `yahoo_log_message':/cygdrive/d/Downloads/New/Desktop/libyahoo2-0.7.5/src/libyahoo2.c:112: undefined reference to `_g_vsnprintf' > > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libyahoo2.a(libyahoo2.o)(.text+0x4e):/cygdrive/d/Downloads/New/Desktop/libyahoo2-0.7.5/src/libyahoo2.c:114: undefined reference to `_ext_yahoo_log' > > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libyahoo2.a(libyahoo2.o)(.text+0x68): In function `yahoo_connect':/cygdrive/d/Downloads/New/Desktop/libyahoo2-0.7.5/src/libyahoo2.c:119: undefined reference to `_ext_yahoo_connect' > > " > > It says thesame things for functions like _g_malloc and _g_realloc too.Any > > idea about solving this? > > 1) Find out where the missing functions are supposed to be coming from. > 2) Find out whether they are actually there or not. > 3) If they are there, find out why the linker isn't finding them at link > time. > 4) If they aren't there, find out what went wrong earlier that resulted in > them not being there. 5) Fix your space bar. :-) Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT