Build poppler 20.12 with msvc 2017 in windows error
I try build poppler 20.12 with msvc 2017 in windows 10 and it work with poppler-cpp. But when I build with poppler-qt5 it return error:
Error C2491 'Poppler::OptContentModel::staticMetaObject': definition of dllimport static data member not allowed poppler-qt5 poppler-20.12.1\build\qt5\src\poppler-qt5_autogen\include_Release\EWIEGA46WW\moc_poppler-optcontent.cpp 65
I have try to add:
#ifdef CURRENT_MODULE #define DLLIMPORTEXPORT _declspec(dllexport) #else #define DLLIMPORTEXPORT _declspec(dllimport) #endif
But nothing work. Can someone help me with this ?