From: Ethan A M. <merritt@u.washington.edu> - 2008-11-30 18:29:57
|
On Saturday 29 November 2008, Tatsuro MATSUOKA wrote: > Hello > > I have tried to build gnuplot for win32 by mingw-gcc-4.3.0 tdm. > (The package of mingw-gcc-4.3.0-tdm has been used for octave-3.0.2-mingw by Benjamin ) > > The Gd library used is Gd 2.0.33 in GnuWin32. Please look to see if it can be fixed by modifying these lines instead: #if defined(WIN32) && !defined(NONDLL) /* static font pointers are recommended when using bgd.dll */ # ifndef GD_NEED_LOCAL_FONT_POINTERS # define GD_NEED_LOCAL_FONT_POINTERS # endif #endif > In compling term.c, the following errors were appeared > In file included from term.h:356, > from term.c:1368: > ../term/gd.trm:198: error: static declaration of 'gdFontSmall' follows non-static declaration > c:/Programs/GnuWin32/include/gdfonts.h:26: error: previous declaration of 'gdFontSmall' was here > ../term/gd.trm:199: error: static declaration of 'gdFontLarge' follows non-static declaration > c:/Programs/GnuWin32/include/gdfontl.h:28: error: previous declaration of 'gdFontLarge' was here > ../term/gd.trm:200: error: static declaration of 'gdFontMediumBold' follows non-static declaration > c:/Programs/GnuWin32/include/gdfontmb.h:26: error: previous declaration of 'gdFontMediumBold' was here > ../term/gd.trm:201: error: static declaration of 'gdFontGiant' follows non-static declaration > c:/Programs/GnuWin32/include/gdfontg.h:27: error: previous declaration of 'gdFontGiant' was here > ../term/gd.trm:202: error: static declaration of 'gdFontTiny' follows non-static declaration > c:/Programs/GnuWin32/include/gdfontt.h:27: error: previous declaration of 'gdFontTiny' was here > make: *** [term.o] Error 1 > > The above errors were not appeared for mingw gcc-3.4.5 (current release of mingw.). > > So I propose a patch for mingw-gcc-4.3.0 at the end of this mail. > > Regards > > Tatsuro > > *** term/org/gd.trm Sat Nov 22 12:11:22 2008 > --- term/gd.trm Sun Nov 30 15:23:48 2008 > *************** > *** 195,206 **** > --- 195,208 ---- > BGD_EXPORT_DATA_PROT gdFontPtr gdFontGiant; /* 9x15 */ > BGD_EXPORT_DATA_PROT gdFontPtr gdFontTiny; /* 5x8 */ > #else > + #ifndef __MINGW32__ > static gdFontPtr gdFontSmall; /* 6x12 */ > static gdFontPtr gdFontLarge; /* 8x16 */ > static gdFontPtr gdFontMediumBold; /* 7x13 */ > static gdFontPtr gdFontGiant; /* 9x15 */ > static gdFontPtr gdFontTiny; /* 5x8 */ > #endif > + #endif > > #define GREG_XMAX 640 > #define GREG_YMAX 480 > -- Ethan A Merritt |