mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] gd undefined references


From: Tony Theodore
Subject: Re: [Mingw-cross-env-list] gd undefined references
Date: Sun, 24 Oct 2010 02:19:16 +1100

On 24 October 2010 01:19, super pollo <address@hidden> wrote:
>
> sorry to bother, but still got problems:
>
> ~/mingw$ echo $PATH
> /etc/script:/home/2009/massimo2/.bin:/home/2009/massimo2/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/sbin:/usr/sbin:/sbin:/opt/delsafe/bin:/opt/dev86/bin:/opt/gnome/bin:/opt/htmlcheck/bin:/opt/ipwatch/bin:/opt/makeboot/bin:/opt/nmag/bin:/opt/typeit/bin:/home/2009/massimo2/mingw/mingw-cross-env-2.15/usr/bin
>
> ~/mingw$ mingw-cross-env-2.15/usr/i686-pc-mingw32/bin/gdlib-config
> --cflags --libs
> -I/home/2009/massimo2/mingw/mingw-cross-env-2.15/usr/i686-pc-mingw32/include
> -DNONDLL
> -ljpeg -lfreetype -lz
> -L/home/2009/massimo2/mingw/mingw-cross-env-2.15/usr/i686-pc-mingw32/lib
> -lxml2 -lz -lws2_32
>
> ~/mingw$ i686-pc-mingw32-gcc gd1.c -lgd
> `mingw-cross-env-2.15/usr/i686-pc-mingw32/bin/gdlib-config --cflags
> --libs`
> /tmp/ccemoMs2.o:gd1.c:(.text+0xea): undefined reference to `_gdImagePng'
> collect2: ld returned 1 exit status
>
> but at least there are fewer :-(

Could be related to this:

http://hg.savannah.gnu.org/hgweb/mingw-cross-env/rev/17b4ab7d2f94

which was fixed after the 2.15 release. Can you check the latest dev
version or maybe just apply that patch[1]?

Thanks,

Tony

[1] Something along the lines of:
cd ~/mingw/mingw-cross-env-2.15
wget http://hg.savannah.gnu.org/hgweb/mingw-cross-env/raw-rev/17b4ab7d2f94
patch -p1< 17b4ab7d2f94
make gd
i686-pc-mingw32-gcc gd.c -lgd `./usr/i686-pc-mingw32/bin/gdlib-config
--cflags --libs`



reply via email to

[Prev in Thread] Current Thread [Next in Thread]