Some notes on compiling GD backend for windows. 1)
> _gdmodule.c needs to be modified in 2 places to
> compile on windows
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
_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)
#define BGD_EXPORT_DATA_IMPL __declspec(dllexport)
#define BGD_EXPORT_DATA_IMPL __declspec(dllimport)
/* 2.0.20: should be nothing at all */
#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?