On 5/9/24 19:17 gnuwimp wrote:
> ../lib/libfltk.a(Fl_WinAPI_Printer_Driver.o):Fl_WinAPI_Printer_Driver.cxx:(.text$_ZN23Fl_PDF_GDI_File_Surface9begin_jobEPKcPPc+0x31):
> undefined reference to `OpenPrinterA'
> ../lib/libfltk.a(Fl_WinAPI_Printer_Driver.o):Fl_WinAPI_Printer_Driver.cxx:(.text$_ZN23Fl_PDF_GDI_File_Surface9begin_jobEPKcPPc+0xb4):
> undefined reference to `DocumentPropertiesA'
> ../lib/libfltk.a(Fl_WinAPI_Printer_Driver.o):Fl_WinAPI_Printer_Driver.cxx:(.text$_ZN23Fl_PDF_GDI_File_Surface9begin_jobEPKcPPc+0x107):
> undefined reference to `DocumentPropertiesA'
> ../lib/libfltk.a(Fl_WinAPI_Printer_Driver.o):Fl_WinAPI_Printer_Driver.cxx:(.text$_ZN23Fl_PDF_GDI_File_Surface9begin_jobEPKcPPc+0x113):
> undefined reference to `ClosePrinter'
> ../lib/libfltk.a(Fl_WinAPI_Printer_Driver.o):Fl_WinAPI_Printer_Driver.cxx:(.text$_ZN23Fl_PDF_GDI_File_Surface9begin_jobEPKcPPc+0x2d6):
> undefined reference to `ClosePrinter'
>
> They might have been added in commit 9472ff546cc0b4150d4dec89b48b3e4814b421f6.
>
> fltk: ffd06dd9ebbc84aad88bfa9cdceab228abd038d7
> gcc version 13.2.0 (Rev6, Built by MSYS2 project)
> ./configure --enable-use_std --prefix=/usr/local
Thanks for the report. This is something Manolo might be able to fix.
> One other thing, if fluid is disabled it failes in test/ directory.
> ./configure --enable-use_std --disable-fluid --prefix=/usr/local
>
> [...]
> Compiling ../fluid/fluid.cxx...
> g++ -I.. -O3 -Wall -Wunused -Wno-format-y2k -fno-exceptions
> -fno-strict-aliasing -ffunction-sections -fdata-sections
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -c ../fluid/fluid.cxx -o
> ../fluid/fluid.o
> echo Linking ../fluid/fluid.exe...
> Linking ../fluid/fluid.exe...
Okay, this looks weird. If fluid is disabled by configure it shouldn't
be built at all. There are obviously dependencies on fluid in the test
folder (see test/*.fl) which require building and using fluid (at least
on a clean system that doesn't have `fluid` already installed).
@Manolo: I repopened GitHub Issue #725: please check if you can fix it
by using one of the three methods I posted there. TIA.
https://github.com/fltk/fltk/issues/725