Skip to content
This repository has been archived by the owner on Sep 23, 2019. It is now read-only.

Building with GCC 4.5.2 (64bit Archlinux) fails #28

Closed
dekomote opened this issue Mar 23, 2011 · 2 comments
Closed

Building with GCC 4.5.2 (64bit Archlinux) fails #28

dekomote opened this issue Mar 23, 2011 · 2 comments

Comments

@dekomote
Copy link
Contributor

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'
@minimoog
Copy link
Owner

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

@dekomote
Copy link
Contributor Author

Fix did the trick. Builds and runs on linux.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants