QtXlsxWriter icon indicating copy to clipboard operation
QtXlsxWriter copied to clipboard

Linker error

Open petemurdock opened this issue 9 years ago • 3 comments

Hi. I'm trying to use your lib with Qt 5.5.1 using the "Usage (2)" technique you detailed with the qtxlsx.pri include project. It compiles fine, but if I attempt to use pretty much any function I get a linker error which seems to be looking for a DLL. I thought from your description this method didn't require one. Any ideas? Thanks. Here's an example of the error: mainwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl QXlsx::Document::Document(class QString const &,class QObject *)" (_imp??0Document@QXlsx@@QEAA@AEBVQString@@PEAVQObject@@@Z) referenced in function "public: void __cdecl MainWindow::fillTree(void)" (?fillTree@MainWindow@@QEAAXXZ)

petemurdock avatar Jan 07 '16 23:01 petemurdock

the same question。 you had solve? thank you,

craigtao avatar Dec 23 '16 01:12 craigtao

Looks like you did not link to the QXlsx library, add QT += xls in your pro file

VSRonin avatar Dec 23 '16 08:12 VSRonin

i use qtcreate complie , i can't find lib file ,just dll and .h file, vs2010 + Qt5, i don't know how to use , th u!

craigtao avatar Dec 29 '16 01:12 craigtao