FW: broken PNG files with GD backend

Some notes on compiling GD backend for windows. 1)

    > _gdmodule.c needs to be modified in 2 places to
    > compile on windows

Hi Stephan,

I've been following your instructions on building gdmodule and I've
gotten pretty far. I have a couple of questions for you.

Did you use the prebuilt gd (not gdmodule) or the dll supplied at the
web site. I built it myself, and when I try to build gdmodule, I get
errors like

_gdmodule.obj : error LNK2001: unresolved external symbol _gdFontGiantRep
_gdmodule.obj : error LNK2001: unresolved external symbol _gdFontLargeRep

The export to these symbols are dependent on the following
preprocessor options (from gd.h)

#ifdef BGDWIN32
#define BGD_EXPORT_DATA_IMPL __declspec(dllexport)
#else
#ifdef WIN32
#define BGD_EXPORT_DATA_IMPL __declspec(dllimport)
#else
/* 2.0.20: should be nothing at all */
#define BGD_EXPORT_DATA_IMPL
#endif /* WIN32 */
#endif /* BGDWIN32 */

In gdfontl.c, there is some code

  BGD_EXPORT_DATA_IMPL gdFontPtr gdFontLarge = &gdFontLargeRep;

I set BGDWIN32 option when building the gd DLL, but I still don't seem
to get _gdFontLargeRep exported to the gd.dll. For example, if I grep
the dll for gdFontLarge, I see that symbol but not gdFontLargeRep.
Ditto for the prebuilt bgd.dll.

Did you encounter this problem and do you have any insights here?

Thanks,
John Hunter