Link to winspool on windows / QT5
-
Hello,
I want to user the windows printer api. Therefore I use functions like OpenPrinter and ClosePrinter.
On Build there are linker errors.
printer.obj:-1: error: LNK2019: unresolved external symbol _ClosePrinter@4 referenced in function "public: void __thiscall Printer::rawprint(void)" (?rawprint@Printer@@QAEXXZ)
I used "LIBS += -lwinspool" in the project file. But that does not help.
I use the QT5 opensource version on windows.
Does anybody know, what to do?
mfg
-
@#pragma comment(lib, "Winspool.lib")@