[SOLVED] C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2 - What does it mean?
-
Hello Everyone,
This is my first post and I am learning QT/C++.
I have 2 windows with menuA having a "Next" button and MenuB having a "Back" button. Everything was working well until I added another button to menuA. I ran it and started getting the following error:
I deleted the newly added button and ran it but I am still having this error.
I will be very grateful if someone can describe what the error mean or what I did wrong. Thank you
___22:01:15: Running build steps for project ReloadOne...
22:01:15: Configuration unchanged, skipping qmake step.
22:01:15: Starting: "C:\QtSDK\QtCreator\bin\jom.exe"
moc_menua.obj : error LNK2019: unresolved external symbol "private: void __thiscall MenuA::on_Nxtpb_clicked(void)" (?on_Nxtpb_clicked@MenuA@@AAEXXZ) referenced in function "private: static void _cdecl MenuA::qt_static_metacall(class QObject ,enum QMetaObject::Call,int,void * )" (?qt_static_metacall@MenuA@@CAXPAVQObject@@W4Call@QMetaObject@@HPAPAX@Z)
debug\ReloadOne.exe : fatal error LNK1120: 1 unresolved externals
link /LIBPATH:"c:\QtSDK\Desktop\Qt\4.8.0\msvc2010\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /MANIFEST /MANIFESTFILE:"debug\ReloadOne.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /OUT:debug\ReloadOne.exe @C:\Users\goomanyv\AppData\Local\Temp\ReloadOne.exe.4452.15.jom
C:\QtSDK\QtCreator\bin\jom.exe -f Makefile.Debug
jom: C:\Users\goomanyv\MyQtProjects\ReloadOne-build-desktop-Qt_4_8_0_for_Desktop-_MSVC2010__Qt_SDK__Debug\Makefile.Debug [debug\ReloadOne.exe] Error 1120jom 1.0.8 - empower your cores
jom: C:\Users\goomanyv\MyQtProjects\ReloadOne-build-desktop-Qt_4_8_0_for_Desktop_-MSVC2010__Qt_SDK__Debug\Makefile [debug] Error 2
22:01:16: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
Error while building project ReloadOne (target: Desktop)
When executing build step 'Make'____________ -
jom just reports that the error has occurred somewhere earlier. In your case it's
@moc_menua.obj : error LNK2019: unresolved external symbol “private: void __thiscall MenuA::on_Nxtpb_clicked(void)” (?on_Nxtpb_clicked@MenuA@@AAEXXZ) referenced in function “private: static void __cdecl MenuA::qt_static_metacall(class QObject *,enum QMetaObject::Call,int,void * *)” (?qt_static_metacall@MenuA@@CAXPAVQObject@@W4Call@QMetaObject@@HPAPAX@Z)@Probably you didn't implement on_Nxtpb_clicked() function.
-
Thank you p-himik!
The deleted button still had its private slot in window menuA's header file. I deleted the obsolete private slot and the errors are now history!
Thanks a lot!
-
Be sure and edit the title of your thread to add [Solved]. Thanks!