Redhat enterprise linux 5
gcc 4.1.2
qt 4.6
qt creator 1.3
I am a newbie for qt . It is my first program.
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
label->show();
return app.exec();
}
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello Qt!");
label->show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
when I type the commond make,I get the words below!
[root@loclwb3 hello]# make
g++ -Wl,-O1 -Wl,-rpath,/opt/qtsdk-2010.02/qt/lib -o hello hello.o -L/opt/qtsdk-2010.02/qt/lib -lQtGui -L/opt/qtsdk-2010.02/qt/lib -L/usr/X11R6/lib -lQtCore -lpthread
/opt/qtsdk-2010.02/qt/lib/libQtGui.so: undefined reference to `FcFreeTypeQueryFace'
collect2: ld returned 1 exit status
make: *** [hello] Error 1
what can I do? thanks!
Bookmarks