QXlsx
QXlsx copied to clipboard
Dynamic library
I don't understand why the ability to create dynamic libraries was removed. Now I have to add to "xlsxglobal.h " old code:
#if !defined(QT_STATIC) && !defined(XLSX_NO_LIB) #if defined(QT_BUILD_XLSX_LIB) #define Q_XLSX_EXPORT Q_DECL_EXPORT #else #define Q_XLSX_EXPORT Q_DECL_IMPORT #endif #else #define Q_XLSX_EXPORT #endif
and Q_XLSX_EXPORT to all classes
Dear @n-r-w
See https://github.com/QtExcel/QXlsx/issues/49 for more information.
Of course, if you want to use a DLL, you can create a new branch or new fork.
Or, you may use QtXlsxWriter.
Because this project is an open source project, you can proceed freely.
This works for me - using it 3 years
support shared and static libraries #127