X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 28 May 2008 21:36:59 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Unable to link with libgd Message-ID: <20080529013659.GA13599@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <340731 DOT 67136 DOT qm AT web65701 DOT mail DOT ac4 DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <340731.67136.qm@web65701.mail.ac4.yahoo.com> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Wed, May 28, 2008 at 06:33:02PM -0700, Mark Smith wrote: >I am trying to use libgd, but the linking step fails. >Can anyone help with this? I installed the libgd >development package using the cygwin installer. > >Here is where I try to build the circletexttest that >comes with the libgd source (beware of wrapped lines). > > >gcc -g -O2 -I/usr/include/freetype2 >-I/usr/X11R6/include -L/usr/lib >-L/usr/X11R6/lib -lgd circletexttest.c -o >circletexttest Put the -lgd after the circletexttest.c. cgf -- 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/