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. Can anyone help me how to remove these errors while debugging a c++ file
Forum Update on Monday, May 27th 2025

Can anyone help me how to remove these errors while debugging a c++ file

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 384 Views
  • 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.
  • S Offline
    S Offline
    Shriansh
    wrote on last edited by
    #1

    Re: [Makefile error in QT "Makefile Error 3"](/topic/135203/makefile-error-in-qt-makefile![alt text](![image url](image urlScreenshot 2024-04-07 193710.png ))-error-3)

    JonBJ 1 Reply Last reply
    0
    • S Shriansh

      Re: [Makefile error in QT "Makefile Error 3"](/topic/135203/makefile-error-in-qt-makefile![alt text](![image url](image urlScreenshot 2024-04-07 193710.png ))-error-3)

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @Shriansh
      You either have not put the QOBJECT macro in the calculator class declaration, or have not re-run the build from scratch since you did (including qmake). calculator.h even has unsaved changes....

      S 1 Reply Last reply
      1
      • JonBJ JonB

        @Shriansh
        You either have not put the QOBJECT macro in the calculator class declaration, or have not re-run the build from scratch since you did (including qmake). calculator.h even has unsaved changes....

        S Offline
        S Offline
        Shriansh
        wrote on last edited by
        #3

        @JonB I didn't get it... Where is the error ? And what I have to do to correct it , please tell me for I'm indulged over it for an hour

        JonBJ 1 Reply Last reply
        0
        • S Shriansh

          @JonB I didn't get it... Where is the error ? And what I have to do to correct it , please tell me for I'm indulged over it for an hour

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @Shriansh
          There is (probably) no error in your code. calculator.h has unsaved changes so goodness knows what that might have in it. I said you need to (save that and) do a complete rebuild. Assuming you know where the build output directory is, delete it or all files in it. Not your source directory!

          S 1 Reply Last reply
          1
          • JonBJ JonB

            @Shriansh
            There is (probably) no error in your code. calculator.h has unsaved changes so goodness knows what that might have in it. I said you need to (save that and) do a complete rebuild. Assuming you know where the build output directory is, delete it or all files in it. Not your source directory!

            S Offline
            S Offline
            Shriansh
            wrote on last edited by
            #5

            @JonB Screenshot 2024-04-07 205245.png there is still two errors coming... 😢

            JonBJ 1 Reply Last reply
            0
            • S Shriansh

              @JonB Screenshot 2024-04-07 205245.png there is still two errors coming... 😢

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #6

              @Shriansh
              The error message from the linker tells you what method is called somewhere but not defined anywhere. Neither of your screenshots show where it is defined.

              S 1 Reply Last reply
              1
              • JonBJ JonB

                @Shriansh
                The error message from the linker tells you what method is called somewhere but not defined anywhere. Neither of your screenshots show where it is defined.

                S Offline
                S Offline
                Shriansh
                wrote on last edited by
                #7

                @JonB after debugging another.cpp program "moc_calculator.cpp" gets built on its own and their it is showing alot of errors ...
                Screenshot 2024-04-07 210640.png

                Christian EhrlicherC 1 Reply Last reply
                0
                • S Shriansh

                  @JonB after debugging another.cpp program "moc_calculator.cpp" gets built on its own and their it is showing alot of errors ...
                  Screenshot 2024-04-07 210640.png

                  Christian EhrlicherC Offline
                  Christian EhrlicherC Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Shriansh As already told you by @JonB you forgot to implement this function so the linker can not find it.

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  1 Reply Last reply
                  3

                  • Login

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