I'm trying to compile my first QT programme but i came across a pretty popular problem, which I can't solve even after browsing this forum.
This is the code I am using:
#include <QCoreApplication>
#include <QDebug>
int main(int argc, char *argv[])
{
qDebug() << "hello";
return a.exec();
}
#include <QCoreApplication>
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << "hello";
return a.exec();
}
To copy to clipboard, switch view to plain text mode
After trying to build it i get this 'error':
C:/MinGW/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Users/Max/Desktop/tutajjestQT/hello-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug'
mingw32-make[1]: Nothing to be done for `first'.
mingw32-make[1]: Leaving directory `C:/Users/Max/Desktop/tutajjestQT/hello-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug'
And w window with "Naci" written in it in which, later on, i can later whatever i want:
QT.jpg
Can anyone help me with what's wrong, please?
Bookmarks