I'm trying to compile and link the Tutorial 1, Chapter 7 tutorial from Qt Assistant 3.3.3, but whenever I run make, I get this:
Code:
root@localhost:~/Programs/main# ls
Makefile lcdrange.h main.cpp main.o main.pro moc_lcdrange.cpp moc_lcdrange.o
root@localhost:~/Programs/main# make
g++ -Wl,-rpath,/usr/lib/qt/lib -o main main.o moc_lcdrange.o -L/usr/lib/qt/lib -L/usr/X11R6/lib
-lqt-mt -lXext -lX11 -lm
main.o(.text+0x142): In function `MyWidget::MyWidget[not-in-charge](QWidget*, char const*)':
: undefined reference to `LCDRange::LCDRange[in-charge](QWidget*, char const*)'
main.o(.text+0x381): In function `MyWidget::MyWidget[in-charge](QWidget*, char const*)':
: undefined reference to `LCDRange::LCDRange[in-charge](QWidget*, char const*)'
moc_lcdrange.o(.text+0x1f9): In function `LCDRange::qt_invoke(int, QUObject*)':
: undefined reference to `LCDRange::setValue(int)'
collect2: ld returned 1 exit status
make: *** [main] Error 1
Obviously, it can't find anything dealing with LCDRange....
I've been doing a lot of googling but I cannot find anything that fits this description.
I'm running Slackware 10, KDE 3.3.1, with Qt 3.3.3. I first thought that I typed something in wrong, but when I copied and pasted the tutorial code directly from Qt Assistant, the same problem occurred. I am following the usual steps: qmake -project, qmake, make. I've tried adding 'config += thread' to the project file. Nothing has worked yet. I cannot figure this one out.
The previous tutorials compiled and linked just fine. Only when I got into creating my own widgets with signals and slots did the problem occur.