minimoog/qtwitdget

Building with GCC 4.5.2 (64bit Archlinux) fails

dekomote opened this issue · 2 comments

Building with GCC 4.5.2 (64bit Archlinux) fails. Qmake called without arguments.:

In file included from /usr/include/QtCore/qatomic.h:45:0,
    from /usr/include/QtCore/qvariant.h:45,
    from /usr/include/QtCore/qabstractitemmodel.h:45,
    from /usr/include/QtCore/QAbstractListModel:1,
    from directmessagesqmllistmodel.h:24,
    from moc_directmessagesqmllistmodel.cpp:10:
/usr/include/QtCore/qglobal.h: In instantiation of 'QTypeInfo<QTweetDMStatus>':
/usr/include/QtCore/qlist.h:417:5:   instantiated from 'void QList<T>::node_destruct(QList<T>::Node*, QList<T>::Node*) [with T = QTweetDMStatus]'
/usr/include/QtCore/qlist.h:742:5:   instantiated from 'void QList<T>::free(QListData::Data*) [with T = QTweetDMStatus]'
/usr/include/QtCore/qlist.h:717:9:   instantiated from 'QList<T>::~QList() [with T = QTweetDMStatus]'
directmessagesqmllistmodel.h:33:1:   instantiated from here
/usr/include/QtCore/qglobal.h:1986:5: error: invalid application of 'sizeof' to incomplete type 'QTweetDMStatus' 
In file included from /usr/include/QtCore/qvariant.h:47:0,
    from /usr/include/QtCore/qabstractitemmodel.h:45,
    from /usr/include/QtCore/QAbstractListModel:1,
    from directmessagesqmllistmodel.h:24,
    from moc_directmessagesqmllistmodel.cpp:10:
/usr/include/QtCore/qlist.h: In member function 'void QList<T>::node_destruct(QList<T>::Node*, QList<T>::Node*) [with T = QTweetDMStatus]':
/usr/include/QtCore/qlist.h:742:5:   instantiated from 'void QList<T>::free(QListData::Data*) [with T = QTweetDMStatus]'
/usr/include/QtCore/qlist.h:717:9:   instantiated from 'QList<T>::~QList() [with T = QTweetDMStatus]'
directmessagesqmllistmodel.h:33:1:   instantiated from here
/usr/include/QtCore/qlist.h:420:28: error: invalid use of incomplete type 'struct QTweetDMStatus'
directmessagesqmllistmodel.h:26:7: error: forward declaration of 'struct QTweetDMStatus'

Quick fix: add #include "qtweetdmstatus.h" in directmessagesqmllistmodel.h.

Fix did the trick. Builds and runs on linux.