include QtSingleApplication include QTranslator include mainwindow int

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#include <QtSingleApplication>
#include <QTranslator>
#include "mainwindow.h"
int main(int argc, char **argv)
{
QtSingleApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
main.o: In function `main':
main.cpp:(.text+0x30): undefined reference to `QtSingleApplication::QtSingleApplication(int&, char**, bool)'
main.cpp:(.text+0x12c): undefined reference to `vtable for QtSingleApplication'
main.cpp:(.text+0x1b5): undefined reference to `vtable for QtSingleApplication'
collect2: ld returned 1 exit status
make: *** [applicationname] Error 1