Vtable Error in Symbian API under Qt
im trying to use TTS under Qt creator as described in "this":http://wiki.forum.nokia.com/index.php/Symbian_S60_API_In_Qt_Project im using "CTtsPlayer":http://cally.iat.sfu.ca/research/attachment/1174162216.zip and calling the TTS by
@ #if defined(S60_32)
CTtsPlayer player = CTtsPlayer::NewLC(); TBuf<255> aBuffer( _L("MMS") ); player->PlayTextL( aBuffer ); #endif@ and . pro has @ LIBS += -leuser -lapparc -lcone -leikcore -lavkon -lefsrv -lestor@ but im getting errors
@ multiple definition of 'vtable for CTtsPlayer'
multiple definition of 'non-virtual thunk to CTtsPlayer::MapcPlayComplete(int)'
it is found in CTtsPlayer and declared virtual
void CTtsPlayer::MapcPlayComplete( TInt aError )
iErr = aError;
iPlaybackInProgress = EFalse;
// Let the paused PlayTextL complete
and the class inherits from MMdaAudioPlayerCallback
Perhaps it would help to ask the developers of CTtsPlayer?
i tried this Class on Symbian Project under Carbide C++
, and it worked fine
but in mixing Qt with Symbian APIs it fails
any idea what is " vtable "
solved by cleaning includes of header files
as as each file as refering to each other in a bad way
vtable issues are sometimes caused by moc not working on all files it should work on. Rerunning qmake does help most of the times for me.
A clean rebuild usually fixes the rest of the cases:-)
the solution that some header files missing and other are duplicated in a bad way