From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Subject: Re: undefined reference Date: Tue, 17 Jan 2006 21:59:47 +0100 Message-ID: <43CD5AC3.6040608@arrakis.es> References: <43CD4E31.3010001@arrakis.es> <43CD5401.5020107@arrakis.es> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-newbie-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-newbie@vger.kernel.org caszonyi@rdslink.ro wrote: > On Tue, 17 Jan 2006, Andrew wrote: > >> caszonyi@rdslink.ro wrote: >> >>> On Tue, 17 Jan 2006, Andrew wrote: >>> >>>> Good evening, >>>> >>>> Trying to compile gqcam-0.8 or 0.9 on a Slackware-10.1 I get a lot >>>> of 'undefined reference' messages about libpng.so. I have version >>>> 1.2.8 of libpng (the latest). >>>> >>>> Does anyone know what is wrong? >>>> >>> >>> you forgot (or the configure script forgot) to add libz when lining >>> with libpng ? >> >> >> The source doesn't use config, only make. >> > > ok. I downloaded the program > on the following line in the Makefile > LDFLAGS = `gtk-config --libs gthread` -ljpeg -lpthread -lpng > you should add -lz like this > LDFLAGS = `gtk-config --libs gthread` -ljpeg -lpthread -lpng -lz Wow! (Lost for words) Thanks Andrew - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs