i split a class into two classes, now the editor recognizes types, but compiler does not.
CControls.h
class CControls : public QThread
{
CControls();
}
CThreadController.h
#include "CControls.h"
class CThreadController : public QThread
{
Q_OBJECT
CControls *m_controls;
}
error
/home/michaeleric/Qt_Creator_Projects/GUI/CThreadController.h:22: error: ‘CControls’ does not name a type
22 | CControls *m_controls;
| ^~~~~~~~~
i dont get how the editor sees CControls as a type, but compiler does not. i dont know qhat else to look at or for.
what is going on?
Aucun commentaire:
Enregistrer un commentaire