|
From: Bastian M. <bma...@we...> - 2016-10-03 08:37:47
|
Sigh. MinGW32 is falling behind rather seriously. IPrintDialogCallback and friends have been part of the API since Windows 2000 Pro according to MSDN. Mingw32 is currently also lacking support for several other "modern" APIs like Direct2D, DirectWrite and touch, which gnuplot might use in the near future. This is also not the only development environment with that problem: OpenWatcom's library is seriously out of date, too. To fix compilation with MinGW32 for now, we could add the old code back along with a number of #ifdef's, or extract the missing definitions from MSDN and add them to the our code (easily around 100 lines), or #ifdef out the affected code and functionality. Btw. Mingw64 and MSVC2015 compile gnuplot just fine. Bastian Am 02.10.2016 um 22:00 schrieb Allin Cottrell: > I just tried (cross-)compiling current CVS gnuplot using 32-bit > mingw (something that has worked fine for me in the past), and I see > that recent changes under src/win have made this problematic: > > - building wgraph.o fails for lack of the symbols PBS_MARQUEE and > PBM_SETMARQUEE > > - building wprinter.o fails for lack of IPrintDialogCallback and > associated stuff > > The first of these issues -- as I found by googling -- is fairly > easily solved. It suffices to insert > > #ifndef PBS_MARQUEE > # define PBS_MARQUEE 0x08 > # define PBM_SETMARQUEE (WM_USER+10) > #endif > > before the function CopyPrint() in wgraph.c. But I haven't yet found > a comparable workaround for IPrintDialogCallback and friends. > > Allin Cottrell > |