www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/28/21:33:29

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-YMail-OSG: HRJI9qEVM1lEfzYDgLctBCR3XZnyG7CBkp4axgQ3IzbGCcsI1AV4UETYZnWb2UcEaMP3yJlBNCpZGEbIho.NN6uQYmWwpqNsvnz7aA--
Date: Wed, 28 May 2008 18:33:02 -0700 (PDT)
From: Mark Smith <drmesmith AT yahoo DOT com>
Subject: Unable to link with libgd
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Message-ID: <340731.67136.qm@web65701.mail.ac4.yahoo.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

Here are the linking errors.

/tmp/cccMEJk4.o: In function `main':
/cygdrive/c/pyDatamine/gd-2.0.33/circletexttest.c:36:
undefined
reference to `_gdImageCreateFromJpeg'
/cygdrive/c/pyDatamine/gd-2.0.33/circletexttest.c:50:
undefined
reference to `_gdImageStringFTCircle'
/cygdrive/c/pyDatamine/gd-2.0.33/circletexttest.c:71:
undefined
reference to `_gdImagePng'
/cygdrive/c/pyDatamine/gd-2.0.33/circletexttest.c:73:
undefined
reference to `_gdImageDestroy'
/cygdrive/c/pyDatamine/gd-2.0.33/circletexttest.c:32:
undefined
reference to `_gdImageCreateTrueColor'
collect2: ld returned 1 exit status

Here is what I get from gdlib-config

gdlib-config --all
GD library  2.0.35
includedir: /usr/include
cflags:     -I/usr/include
ldflags:      -L/usr/lib  -L/usr/X11R6/lib
libs:       -lXpm -lX11 -ljpeg -lfontconfig -lfreetype
-lpng12 -lz
-L/usr/lib -liconv
libdir:     /usr/lib
features:   GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE
GD_PNG GD_GIF
GD_GIFANIM GD_OPENPOLYGON

Thanks in advance.


      

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019