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 Updated to NodeBB v4.3 + New Features

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 402 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 7 Apr 2024, 14:08 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)

    J 1 Reply Last reply 7 Apr 2024, 14:20
    0
    • S Shriansh
      7 Apr 2024, 14:08

      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)

      J Offline
      J Offline
      JonB
      wrote on 7 Apr 2024, 14:20 last edited by JonB 4 Jul 2024, 14:23
      #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 7 Apr 2024, 14:27
      1
      • J JonB
        7 Apr 2024, 14:20

        @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 7 Apr 2024, 14:27 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

        J 1 Reply Last reply 7 Apr 2024, 14:37
        0
        • S Shriansh
          7 Apr 2024, 14:27

          @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

          J Offline
          J Offline
          JonB
          wrote on 7 Apr 2024, 14:37 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 7 Apr 2024, 15:23
          1
          • J JonB
            7 Apr 2024, 14:37

            @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 7 Apr 2024, 15:23 last edited by
            #5

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

            J 1 Reply Last reply 7 Apr 2024, 15:31
            0
            • S Shriansh
              7 Apr 2024, 15:23

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

              J Offline
              J Offline
              JonB
              wrote on 7 Apr 2024, 15:31 last edited by JonB 4 Jul 2024, 15:31
              #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 7 Apr 2024, 15:37
              1
              • J JonB
                7 Apr 2024, 15:31

                @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 7 Apr 2024, 15:37 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

                C 1 Reply Last reply 7 Apr 2024, 15:38
                0
                • S Shriansh
                  7 Apr 2024, 15:37

                  @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

                  C Offline
                  C Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on 7 Apr 2024, 15:38 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

                  1/8

                  7 Apr 2024, 14:08

                  • Login

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