plenty of compile error
-
Hello there,
I have lots of compile errors. The followings are those:
D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qwidget.h:858: warning:
C4800: 'uint': forcing value to bool 'true' or 'false' (performance warning)D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qlayoutitem.h:79: warning:
C4251: 'QLayoutItem::align': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QLayoutItem'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:77: warning:
C4251: 'QStyleOption::state': class 'QFlagsQStyle::StateFlag' needs to have dll-interface to be used by clients of class 'QStyleOption'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:122: warning:
C4251: 'QStyleOptionFrame::features': class 'QFlagsQStyleOptionFrame::FrameFeature' needs to have dll-interface to be used by clients of class 'QStyleOptionFrame'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:200: warning:
C4251: 'QStyleOptionHeader::textAlignment': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QStyleOptionHeader'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:202: warning:
C4251: 'QStyleOptionHeader::iconAlignment': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QStyleOptionHeader'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:225: warning:
C4251: 'QStyleOptionButton::features': class 'QFlagsQStyleOptionButton::ButtonFeature' needs to have dll-interface to be used by clients of class 'QStyleOptionButton'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:260: warning:
C4251: 'QStyleOptionTab::cornerWidgets': class 'QFlagsQStyleOptionTab::CornerWidget' needs to have dll-interface to be used by clients of class 'QStyleOptionTab'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:265: warning:
C4251: 'QStyleOptionTab::features': class 'QFlagsQStyleOptionTab::TabFeature' needs to have dll-interface to be used by clients of class 'QStyleOptionTab'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:294: warning:
C4251: 'QStyleOptionToolBar::features': class 'QFlagsQStyleOptionToolBar::ToolBarFeature' needs to have dll-interface to be used by clients of class 'QStyleOptionToolBar'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:318: warning:
C4251: 'QStyleOptionProgressBar::textAlignment': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QStyleOptionProgressBar'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:392: warning:
C4251: 'QStyleOptionViewItem::displayAlignment': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QStyleOptionViewItem'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:393: warning:
C4251: 'QStyleOptionViewItem::decorationAlignment': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QStyleOptionViewItem'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:410: warning:
C4251: 'QStyleOptionViewItem::features': class 'QFlagsQStyleOptionViewItem::ViewItemFeature' needs to have dll-interface to be used by clients of class 'QStyleOptionViewItem'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:488: warning:
C4251: 'QStyleOptionComplex::subControls': class 'QFlagsQStyle::SubControl' needs to have dll-interface to be used by clients of class 'QStyleOptionComplex'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:489: warning:
C4251: 'QStyleOptionComplex::activeSubControls': class 'QFlagsQStyle::SubControl' needs to have dll-interface to be used by clients of class 'QStyleOptionComplex'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:77: warning:
C4251: 'QStyleOption::state': class 'QFlagsQStyle::StateFlag' needs to have dll-interface to be used by clients of class 'QStyleOption'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:531: warning:
C4251: 'QStyleOptionSpinBox::stepEnabled': class 'QFlagsQAbstractSpinBox::StepEnabledFlag' needs to have dll-interface to be used by clients of class 'QStyleOptionSpinBox'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:552: warning:
C4251: 'QStyleOptionToolButton::features': class 'QFlagsQStyleOptionToolButton::ToolButtonFeature' needs to have dll-interface to be used by clients of class 'QStyleOptionToolButton'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:122: warning:
C4251: 'QStyleOptionFrame::features': class 'QFlagsQStyleOptionFrame::FrameFeature' needs to have dll-interface to be used by clients of class 'QStyleOptionFrame'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:599: warning:
C4251: 'QStyleOptionTitleBar::titleBarFlags': class 'QFlagsQt::WindowType' needs to have dll-interface to be used by clients of class 'QStyleOptionTitleBar'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:200: warning:
C4251: 'QStyleOptionHeader::textAlignment': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QStyleOptionHeader'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:202: warning:
C4251: 'QStyleOptionHeader::iconAlignment': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QStyleOptionHeader'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:614: warning:
C4251: 'QStyleOptionGroupBox::features': class 'QFlagsQStyleOptionFrame::FrameFeature' needs to have dll-interface to be used by clients of class 'QStyleOptionGroupBox'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:616: warning: C4251: 'QStyleOptionGroupBox::textAlignment': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QStyleOptionGroupBox'
D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:225: warning:
C4251: 'QStyleOptionButton::features': class 'QFlagsQStyleOptionButton::ButtonFeature' needs to have dll-interface to be used by clients of class 'QStyleOptionButton'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:260: warning:
C4251: 'QStyleOptionTab::cornerWidgets': class 'QFlagsQStyleOptionTab::CornerWidget' needs to have dll-interface to be used by clients of class 'QStyleOptionTab'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:265: warning:
C4251: 'QStyleOptionTab::features': class 'QFlagsQStyleOptionTab::TabFeature' needs to have dll-interface to be used by clients of class 'QStyleOptionTab'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:294: warning: C4251: 'QStyleOptionToolBar::features': class 'QFlagsQStyleOptionToolBar::ToolBarFeature' needs to have dll-interface to be used by clients of class 'QStyleOptionToolBar'
D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:318: warning:
C4251: 'QStyleOptionProgressBar::textAlignment': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QStyleOptionProgressBar'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:392: warning:
C4251: 'QStyleOptionViewItem::displayAlignment': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QStyleOptionViewItem'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:393: warning:
C4251: 'QStyleOptionViewItem::decorationAlignment': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QStyleOptionViewItem'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:410: warning:
C4251: 'QStyleOptionViewItem::features': class 'QFlagsQStyleOptionViewItem::ViewItemFeature' needs to have dll-interface to be used by clients of class 'QStyleOptionViewItem'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:488: warning:
C4251: 'QStyleOptionComplex::subControls': class 'QFlagsQStyle::SubControl' needs to have dll-interface to be used by clients of class 'QStyleOptionComplex'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:489: warning:
C4251: 'QStyleOptionComplex::activeSubControls': class 'QFlagsQStyle::SubControl' needs to have dll-interface to be used by clients of class 'QStyleOptionComplex'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:531: warning:
C4251: 'QStyleOptionSpinBox::stepEnabled': class 'QFlagsQAbstractSpinBox::StepEnabledFlag' needs to have dll-interface to be used by clients of class 'QStyleOptionSpinBox'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qlayoutitem.h:79: warning:
C4251: 'QLayoutItem::align': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QLayoutItem'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:552: warning:
C4251: 'QStyleOptionToolButton::features': class 'QFlagsQStyleOptionToolButton::ToolButtonFeature' needs to have dll-interface to be used by clients of class 'QStyleOptionToolButton'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:599: warning:
C4251: 'QStyleOptionTitleBar::titleBarFlags': class 'QFlagsQt::WindowType' needs to have dll-interface to be used by clients of class 'QStyleOptionTitleBar'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:614: warning: C4251: 'QStyleOptionGroupBox::features': class 'QFlagsQStyleOptionFrame::FrameFeature' needs to have dll-interface to be used by clients of class 'QStyleOptionGroupBox'
D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qstyleoption.h:616: warning:
C4251: 'QStyleOptionGroupBox::textAlignment': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QStyleOptionGroupBox'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qlayoutitem.h:79: warning:
C4251: 'QLayoutItem::align': class 'QFlagsQt::AlignmentFlag' needs to have dll-interface to be used by clients of class 'QLayoutItem'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qtablewidget.h:174: warning:
C4251: 'QTableWidgetItem::values': class 'QVector<QWidgetItemData>' needs to have dll-interface to be used by clients of class 'QTableWidgetItem'D:\Programes\Qt\5.6.2\5.6\msvc2015_64\include\QtWidgets\qtablewidget.h:177: warning:
C4251: 'QTableWidgetItem::itemFlags': class 'QFlagsQt::ItemFlag' needs to have dll-interface to be used by clients of class 'QTableWidgetItem' -
Hi,
Might be a silly question but which version of Visual Studio are you using exactly ?