I've got Qt 4.4 and CB 8.02.
I initially had trouble getting my application to link, but then figured out I had to copy QtCore4.dll to the windows system director or put it in the linker path, whatever, easy fix. After that, simple Qt applications compiled fine. (I'm working my way through a Qt tutorial.) But when I got the the first application that subclasses QWidget, things get wonky. I get the error message listed at the end of this post.
I understand that I have to use qmake, which runs moc, so I added the following lines to the pre-build steps:
qmake -project
qmake
Still I get the same problem, just now I don't get errors on the lines that referred to slots in my C++ files.
Can someone tell me what I need to do to fix this? Your help is greatly appreciated.
Thanks
Ray
||=== TribalCostModel, Debug ===|
obj\Debug\lcdrange.o(.text+0x172)||In function `ZN8LCDRangeC2EP7QWidget':
C:\src\lcdrange.cpp|23|undefined reference to `vtable for LCDRange'
obj\Debug\lcdrange.o(.text+0x17e):C:\src\lcdrange.cpp|23|undefined reference to `vtable for LCDRange'
obj\Debug\lcdrange.o(.text+0x4cc)||In function `ZN8LCDRangeC1EP7QWidget':
C:\src\lcdrange.cpp|23|undefined reference to `vtable for LCDRange'
obj\Debug\lcdrange.o(.text+0x4d8):C:\src\lcdrange.cpp|23|undefined reference to `vtable for LCDRange'
||=== Build finished: 4 errors, 0 warnings ===|