problems trying to compile qt example from tutorial
Hi,
I installed qt1g-dev (and qt1g) in my system, but when I try to compile
the first example from the tutorial, I get the message:
g++ hello.C -o hello
hello.C:9: qapp.h: No such file or directory
hello.C:10: qpushbt.h: No such file or directory
make: *** [hello] Error 1
Wasn't the installation supposed to set the include paths for me, or I
really have to do it by hand?
Well, after I tryed to include by hand, I found that the libg++272-dev
was not installed. Should not the libqtg1-dev depend on it?
Anyway, I installed libg++272-dev, and now I get these messages, with
the -I to include qt by hand. What am I missing?
$ g++ -I/usr/X11R6/include/qt hello.C -o hello
/tmp/cca045561.o: In function `main':
/tmp/cca045561.o(.text+0x17): undefined reference to `QApplication::QApplication(int &, char **)'
/tmp/cca045561.o(.text+0x2f): undefined reference to `QPushButton::QPushButton(char const *, QWidget *, char const *)'
/tmp/cca045561.o(.text+0x42): undefined reference to `QPushButton::resize(int, int)'
/tmp/cca045561.o(.text+0x55): undefined reference to `QApplication::setMainWidget(QWidget *)'
/tmp/cca045561.o(.text+0x64): undefined reference to `QWidget::show(void)'
/tmp/cca045561.o(.text+0x70): undefined reference to `QApplication::exec(void)'
/tmp/cca045561.o(.text+0x91): undefined reference to `QApplication::~QApplication(void)'
/tmp/cca045561.o: In function `QPushButton::~QPushButton(void)':
/tmp/cca045561.o(.text+0xce): undefined reference to `QPushButton::QPaintDevice virtual table'
/tmp/cca045561.o(.text+0xd5): undefined reference to `QPushButton virtual table'
/tmp/cca045561.o(.text+0xdc): undefined reference to `QButton::~QButton(void)'
/tmp/cca045561.o: In function `QArrayT<char>::detach(void)':
/tmp/cca045561.o(.text+0x129): undefined reference to `QGArray::detach(void)'
/tmp/cca045561.o: In function `QArrayT<char>::~QArrayT(void)':
/tmp/cca045561.o(.text+0x155): undefined reference to `QGArray::~QGArray(void)'
/tmp/cca045561.o(.rodata+0x2c): undefined reference to `QGArray::newData(void)'
/tmp/cca045561.o(.rodata+0x34): undefined reference to `QGArray::deleteData(QGArray::array_data *)'
/tmp/cca045561.o(.rodata+0x54): undefined reference to `QGArray::newData(void)'
/tmp/cca045561.o(.rodata+0x5c): undefined reference to `QGArray::deleteData(QGArray::array_data *)'
$
--
Luiz Otavio L. Zorzella Product Engineer
zorzella@conexware.com http://www.conexware.com
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: