why I get a expected ';' before 'RegistrationHandler' in my code, cant find the error?
Q_DECL_EXPORT int main(int argc, char **argv)
{
// this is where the server is started etc
Application app(argc, argv);
// localization support
QTranslator translator;
QString locale_string = QLocale().name();
QString filename = QString( "MyApp_%1" ).arg( locale_string );
if (translator.load(filename, "app/native/qm")) {
app.installTranslator( &translator );
}
new MyApp(&app);
const QString uuid(QLatin1String("abc"));
RegistrationHandler *registrationHandler = new RegistrationHandler(uuid, &app);
return Application::exec();
}
I re-indented your code, it was hard to read.
Please show how the declaration of
RegistrationHandlerworks, there’s no#includes shown in this code and clearly it’s not declared in the included code, either.