PDA

View Full Version : Help!....



k12yp70n
10th August 2009, 16:20
Hi there folks, I've encountered a big problem here....

Let's just say that I have just upgraded to the latest version of Qt and now I am unable to build any of my software projects that use signals/slots. When I try to build I get this message:

Undefined symbols:
"main_window::save()", referenced from:
main_window::qt_metacall(QMetaObject::Call, int, void**)in moc_main_window.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

And yes I'm using the Q_OBJECT macro, so I think I should be running into any sort of problem...

Thanks in Advance.

Lykurg
10th August 2009, 19:21
Have you cleaned your project before building with the new version of Qt?

k12yp70n
10th August 2009, 19:28
I have but it still doesn't work...:(

PaceyIV
10th August 2009, 20:20
try to run qmake and then compile

k12yp70n
12th August 2009, 15:19
Tried that as well and it didn't work...:(

PaceyIV
12th August 2009, 15:24
What are you using to develop and compile your project? QtCreator?
Have you check that in Tool\Options\Qt4 is selected the right and valid Qt Version Path?

wysota
12th August 2009, 15:41
Does the implementation of main_window::save() really exist?

k12yp70n
12th August 2009, 16:34
Yes I have checked the version of Qt that I am using through Qt Creator (4.5.2)

And yes save() has been implemented

wysota
12th August 2009, 17:12
Are you sure it's included into the project and gets compiled during the build process? Can you show us where save() is implemented and what it contains?