Re: [GD-DEVEL] using static lib bgd_a.lib
[email protected] (Pierre)
| Newsgroups | php.gd.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Tom, On 6/8/07, Tom Lee <[email protected]> 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. --Pierre