This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Unable to link with libgd
- From: Mark Smith <drmesmith at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 28 May 2008 18:33:02 -0700 (PDT)
- Subject: Unable to link with libgd
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/