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

Link Error

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 3 Posters 926 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.
  • M Offline
    M Offline
    MasterBlade
    wrote on last edited by
    #1

    Hello I'm having link errors. The code and error messages are listed below.
    I think that's a simple code and I use similar codes elsewhere without any problems.
    Help please!

    0_1533783222483_11.PNG

    jsulmJ 1 Reply Last reply
    0
    • devDawgD Offline
      devDawgD Offline
      devDawg
      wrote on last edited by devDawg
      #2

      Run the debugger, set a good breakpoint, and look at your local variables. The nature of this error leads me to believe that you are attempting to access memory that does not exist or hasn't been properly allocated.

      Let me know what you get in terms of local values. Also, post the header files for Target and TableInit, if you don't mind.

      Anything worthwhile is never achieved easily.

      jsulmJ 1 Reply Last reply
      0
      • M MasterBlade

        Hello I'm having link errors. The code and error messages are listed below.
        I think that's a simple code and I use similar codes elsewhere without any problems.
        Help please!

        0_1533783222483_11.PNG

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @MasterBlade Looks like you forgot to add TableInit cpp file to your project. Please show your pro file.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        M 1 Reply Last reply
        4
        • devDawgD devDawg

          Run the debugger, set a good breakpoint, and look at your local variables. The nature of this error leads me to believe that you are attempting to access memory that does not exist or hasn't been properly allocated.

          Let me know what you get in terms of local values. Also, post the header files for Target and TableInit, if you don't mind.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @devDawg Debugging will not help here as the app cannot be linked, so build fails and there is nothing to debug.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • jsulmJ jsulm

            @MasterBlade Looks like you forgot to add TableInit cpp file to your project. Please show your pro file.

            M Offline
            M Offline
            MasterBlade
            wrote on last edited by
            #5

            @jsulm said in Link Error:

            @MasterBlade Looks like you forgot to add TableInit cpp file to your project. Please show your pro file.

            The pro file seems alright to me.
            1_1533814487800_14.PNG 0_1533814487800_13.PNG

            jsulmJ 1 Reply Last reply
            0
            • M MasterBlade

              @jsulm said in Link Error:

              @MasterBlade Looks like you forgot to add TableInit cpp file to your project. Please show your pro file.

              The pro file seems alright to me.
              1_1533814487800_14.PNG 0_1533814487800_13.PNG

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @MasterBlade Delete build folder, run qmake and build

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              M 1 Reply Last reply
              1
              • jsulmJ jsulm

                @MasterBlade Delete build folder, run qmake and build

                M Offline
                M Offline
                MasterBlade
                wrote on last edited by
                #7

                @jsulm said in Link Error:

                @MasterBlade Delete build folder, run qmake and build

                I'm sorry but which is build folder?

                jsulmJ 1 Reply Last reply
                0
                • M MasterBlade

                  @jsulm said in Link Error:

                  @MasterBlade Delete build folder, run qmake and build

                  I'm sorry but which is build folder?

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @MasterBlade On the left side click on "Projects" then you will see

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  M 1 Reply Last reply
                  2
                  • jsulmJ jsulm

                    @MasterBlade On the left side click on "Projects" then you will see

                    M Offline
                    M Offline
                    MasterBlade
                    wrote on last edited by
                    #9

                    @jsulm said in Link Error:

                    @MasterBlade On the left side click on "Projects" then you will see

                    Problem solved! Thanks for the help!

                    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