From: Pierre <pierre.php@gmail.com>
To: "Tom Lee" <tom_lee01@hotmail.com>
CC: gd-devel@lists.php.net
Subject: Re: [GD-DEVEL] using static lib bgd_a.lib
Date: Sun, 3 Jun 2007 12:05:03 +0200
Hi Tom,
On 6/2/07, Tom Lee <tom_lee01@hotmail.com> wrote:
Hello,
I tried to use bgd_a.lib instead of bgd.lib from gd-2.0.34-win32.zip.
using bgd.lib has no link error while the static lib bgd_a.lib won't work.
I added #define NONDLL 1 to gd.h for using bgd_a.lib but the link will
complain about many missing functions.
Any suggestions about how to use bgd_a.lib? thanks.
I would suggest to compile it yourself. It is relatively easy using
the VC makefiles in windows/ or cmake.
I compiled the bgd_a.lib myself using VC makefile as you suggested. I still get many complains during the link.
I aded #define NONDLL 1 to gd.h, not helpful.
term.obj : error LNK2019: unresolved external symbol _gdImageDestroy referenced
in function _image_do_crop
term.obj : error LNK2019: unresolved external symbol _gdImageCopy referenced in
function _image_do_crop
term.obj : error LNK2019: unresolved external symbol _gdImageColorTransparent referenced in function _image_do_crop
term.obj : error LNK2019: unresolved external symbol _gdImagePaletteCopy referenced in function _image_do_crop
not sure if there are any changes required?
thanks.
Tom
_________________________________________________________________
Like puzzles? Play free games & earn great prizes. Play Clink now.
http://club.live.com/clink.aspx?icid=clink_hotmailtextlink2