Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2 - What does it mean?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2 - What does it mean?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 12.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vin85
    wrote on last edited by
    #1

    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'
    ____________

    1 Reply Last reply
    0
    • P Offline
      P Offline
      p-himik
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vin85
        wrote on last edited by
        #3

        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!

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mlong
          wrote on last edited by
          #4

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

          Software Engineer
          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved