PDA

View Full Version : QtTest example not compiling



GrahamLabdon
18th March 2010, 17:02
Hi everyone
I ahve just started using Qt and am trying to get the example for QtTest working.
When I comoile the example given I get the following errors


1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\main. moc(19) : error C3646: 'uint' : unknown override specifier
1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\main. moc(19) : error C3646: 'qt_meta_data_TestQString' : unknown override specifier
1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\main. moc(19) : error C2090: function returns array
1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\main. moc(19) : error C2270: 'QTTEST_MAIN' : modifiers not allowed on nonmember functions
1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\main. moc(19) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\main. moc(19) : error C2072: 'QTTEST_MAIN' : initialization of a function
1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\main. moc(22) : error C2078: too many initializers
1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\main. moc(44) : error C2065: 'qt_meta_data_TestQString' : undeclared identifier
Does anyone know what I am doing wrong?

Graham

GrahamLabdon
19th March 2010, 08:50
Hi Again
Please can someone help?

wysota
19th March 2010, 09:39
Please describe step by step what you did to build the project.

GrahamLabdon
19th March 2010, 09:41
Hi
Thanks for replying - I started over this morning and now it is working - don't know why