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 From: "Dave Korn" To: Subject: RE: Undefined references Date: Mon, 13 Jun 2005 16:05:36 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <000201c5701f$a1f544f0$7c01a8c0@keloasc60pobkb> Message-ID: ----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)(.tex > t+0x > 38): 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)(.tex > t+0x4e):/cygdrive/d/Downloads/New/Desktop/libyahoo2-0.7.5/src/libyahoo2.c:11 > 4: undefined reference to `_ext_yahoo_log' > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libyahoo2.a(libyahoo2.o)(.tex > t+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. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/