Unable to link with libgd

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Thu May 29 01:51:00 GMT 2008


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/



More information about the Cygwin mailing list