Hello,
Im trying to make some small programs with QT4. Everyting goes well untill I want to create my own widgets with the Q_OBJECT in a class.
Then I can't compile the thing anymore.
It says:
Undefined symbols:
"vtable for Communicate", referenced from:
__ZTV11Communicate$non_lazy_ptr in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
What did I do wrong? I just copy-pasted some code from a tutorial.
http://www.zetcode.com/tutorials/qt4tutorial/firstprograms/
It's the communicate example at the bottom. The only difference with my code is that I've put everything in one file. I know it isn't supposed to be done that way but I just want to learn QT4.
I've already tried reinstalling QT4 but it didn't help.
I'm running Snow Leopard if it makes any difference.
Thanks