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")@



  • in the meantime I installed qt 5.0.1. And now it works

    Maybe some variables were broken...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.