February 21, 2012

vin85 vin85
Lab Rat
2 posts

[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 1120

jom 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’_____________

3 replies

February 22, 2012

p-himik p-himik
Lab Rat
262 posts

jom just reports that the error has occurred somewhere earlier. In your case it’s

  1. 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.

February 22, 2012

vin85 vin85
Lab Rat
2 posts

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!

February 23, 2012

mlong mlong
Robot Herder
1551 posts

Be sure and edit the title of your thread to add [Solved]. Thanks!

 Signature 

Senior Software Engineer
AccuWeather Enterprise Solutions
/* My views and opinions do not necessarily reflect those of my employer.  Void where prohibited. */

 
  ‹‹ [SOLVED]Microsoft Visual Studio 2010 compiler      Connection/Slot question ››

You must log in to post a reply. Not a member yet? Register here!