Ok, I know what's going on. I recently installed qt-4.4.0 and hence installed another version of moc which requires that the header file QtCore/QObject, not qobject.h, be included in a header file which includes Q_OBJECT. The problem is that the moc generated from my qt-4.4.0 installation conflicts with the moc generated from my qt-3.3.0 installation. Both versions are included in my PATH variable. One located in /usr/bin, the other in /usr/lib/qt/bin.
Code:
bobby@Veronica:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.
How do I tell make which moc to use explicitly? Currently, the moc used defaults to 4.4.0 version.