PLEASE HELP!!!I have a problem compiling qt applications, the qt headers file not found but when i check manually found in their dir.
here is the code i tried.
Fedora 10 i686 machine
/***********************
#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();
}
**********************************************
output
[Ernest@pulse Hello]$ make
g++ -o Hello hello.o -L/usr/lib/qt-3.3/lib -lqt-mt -lXext -lX11 -lm
hello.o: In function `main':
/home/Ernest/Practice/Hello/hello.cpp:6: undefined reference to `QApplication::QApplication(int&, char**, int)'
hello.o: In function `QString':
/usr/include/QtCore/qstring.h:385: undefined reference to `QString::fromAscii_helper(char const*, int)'
hello.o: In function `main':
/home/Ernest/Practice/Hello/hello.cpp:7: undefined reference to `QLabel::QLabel(QString const&, QWidget*, QFlags<Qt::WindowType>)'
hello.o: In function `~QString':
/usr/include/QtCore/qstring.h:825: undefined reference to `QString::free(QString:
ata*)'
/usr/include/QtCore/qstring.h:825: undefined reference to `QString::free(QString:
ata*)'
collect2: ld returned 1 exit status
make: *** [Hello] Error 1