Hi,
I am again new to Qt world !
I have created a Helloworld Program in Qt 4.7.0 ( 32 bit windows ), using QtCreater 2.0.1.
#include <QtCore/QCoreApplication>
#include <QtGui/QLabel>
int main(int argc, char *argv[])
{
label.show();
return a.exec();
}
#include <QtCore/QCoreApplication>
#include <QtGui/QLabel>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QLabel label("Hello World!");
label.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
when I build this code getting the following errors,
main.cpp:11: undefined reference to `_imp___ZN6QLabelD1Ev'
collect2: ld returned 1 exit status
main.cpp:11: undefined reference to `_imp___ZN6QLabelD1Ev'
collect2: ld returned 1 exit status
To copy to clipboard, switch view to plain text mode
could anybody let me know, what I am doing wrong in this simple code ???
Thanks,
Pradeep.
Bookmarks