Re: [GD-DEVEL] using static lib bgd_a.lib

From: Date: Sat, 09 Jun 2007 07:16:08 +0000
Subject: Re: [GD-DEVEL] using static lib bgd_a.lib
References: 1  Groups: php.gd.devel 
Request: Send a blank email to php-gd-devel+get-202@lists.php.net to get a copy of this message
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: Fri, 8 Jun 2007 10:29:16 +0200 Hi Tom, On 6/8/07, Tom Lee <tom_lee01@hotmail.com> wrote:
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?
NONDLL has to be defined in the GD Makefile. Without it, the resulting .a/.lib will not export the functions. That's probably why you keep having these linker errors. It is actually a bug in our Makefiles, it should be an option and work nicely once it is set. I will try to add it over the weekend, to both win32/Makefile and CMake. Please let us know if it works for you when you add the NONDLL flag manually before compiling GD.
I added the following LIBGDCFLAGS= \ .... /D NONDLL=1 The GD compilation cannot generate bgd* if you have windows/Makefile ready, I will be happy to give it a try. thanks. Tom _________________________________________________________________ Don’t miss your chance to WIN $10,000 and other great prizes from Microsoft Office Live http://clk.atdmt.com/MRT/go/aub0540003042mrt/direct/01/

« previous php.gd.devel (#202) next »