Re: GIF image handling?

Edi Weitz <[email protected]> Sat, 18 Dec 2004 04:20:48 +0100
Newsgroups gmane.lisp.allegro
Message-ID <[email protected]>
[By chance I just saw on gmane.org that two of messages from a couple
of weeks ago obviously didn't reach the mailing list so I'm sending
them again. My apologies if someone gets this twice.]

On Thu, 18 Nov 2004 11:46:43 -0800 (PST), joe fred <[email protected]> wrote:

> GD does look like it would work for me and there is a pre-compiled
> windows library for it at
>
> http://www.boutell.com/gd/manual2.0.33.html#getgd
> (NOTE:  the  library  file there is called "bgd.dll" instead of
> "gd.dll".)
>
> I'm able to compile cl-gd-glue-gif.c ok with
>    gcc -Id:/local/graphics/gd/gdwin32 -c cl-gd-glue-gif.c
>
> Unfortunately, I'm not able to link cl-gd-glue-gif.o, see below.
> Apparently six years of Java have atrophied my windows' C skills
> down to the most basic level.
>
> Thanks to Harley and Edi for their help, but it looks like I'll need
> to spend some time relearning basic C linking before I get on with
> GD & cl-gd.

Hmm, I'm not a C expert either but one of the problems might be "name
decoration." If you look at bgd.dll with a tool like PE Explorer you
can see that it exports, e.g., the symbol "gdAlphaBlend@8" while
Visual Studio would export "_gdAlphaBlend@8" (note the underline) with
__stdcall and "_gdAlphaBlend" with __cdecl. I don't know how Lisp FFIs
handle this.

Sorry, but at the moment I can't help you. I don't know enough about
Windows.

Cheers,
Edi.