Please post your code and the complete error.
The line you posted only states that there is an error in main.o, but not what the error is.
Please post your code and the complete error.
The line you posted only states that there is an error in main.o, but not what the error is.
Qt Code:
#include <QApplication> #include <QLabel> int main(int argc, char *argv[]) { label->show(); return app.exec(); }To copy to clipboard, switch view to plain text mode
That code looks ok (at first sight).
Can you post the complete error please?
I guess it's a linker error which means it might be possible that certain components can't be found.
If you use Qt Creator, the complete error can be found in the compile or build tab at the bottom.
It is working now. thanks for your help. yes i am using Qt Creater. I am new to the world of Qt and Qt Creater. Can please suggest the best place of Qt creater not Qt but Qt creater. I am alittle confuse with this Qt creater. In the book they dont say how to make apps using Qt creater they gave example and say run it.
As far as I know, the book was written before Qt Creator was released.
But you can find information on this page: http://doc.qt.nokia.com/qtcreator-2.0/index.html
Bookmarks