Frage

Errors:

In file included from /opt/qtsdk-2010.05/qt/include/QtCore/qcoreapplication.h:47,
                 from /opt/qtsdk-2010.05/qt/include/QtGui/qapplication.h:45,
                 from /opt/qtsdk-2010.05/qt/include/QtGui/QApplication:1,
                 from main.cpp:3:
/opt/qtsdk-2010.05/qt/include/QtCore/qeventloop.h:51: error: expected initializer before ‘QtCoreModule’
make: *** [main.o] Error 1

I have checked ; missing in my .h and .cpp files, couldn't find any. Should I post here the code? Or the error means something else?

Help!

War es hilfreich?

Lösung

I'm betting you're missing an ; at the end of a class or struct declaration in one of the headers you're importing. (Your MainWindow.h specifically.)

class Whatever : ... {

}; // <- this ";" is crucial
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top