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

[email protected] ("Tom Lee")
Newsgroups php.gd.devel
Message-ID <[email protected]>


>From: Pierre <[email protected]>
>To: "Tom Lee" <[email protected]>
>CC: [email protected]
>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 <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.