Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. undefined reference - please help with linker issue

undefined reference - please help with linker issue

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
3 Posts 2 Posters 13 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I have run out of options to resolve this in another forum. The "conclusion " was - it is a linker error... I am asking for help to actually correct the error. There are no other errors posted. This is ALL (of the errors ) I have to go by. I will be happy to provide RELEVANT info , barring " what are you trying to do...". I am deliberately NOT adding more info , for now, I just do not want to derail / influence your ideas of fixing it.

    lib/libQt5SerialPort.so /home/nov25-1/Qt/5.15.2/gcc_64/lib/libQt5Core.so -lGL -lpthread
    /usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23
    mainwindow.o: in function `MainWindow::MainWindow()':
    mainwindow.cpp:(.text+0x270): undefined reference to `ORIGINAL_TERMINAL_MainWindow::ORIGINAL_TERMINAL_MainWindow(QWidget*)'
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: Leaving directory '/mnt/A_BT_DEC10/BT__PROGRAMS/A_APR9_MAR7_MAR19_CLEAN/A_BT_LIBRARY/mdi'
    make[1]: *** [Makefile:293: mdi] Error 1
    make: *** [Makefile:569: sub----A_BT_LIBRARY-mdi-make_first] Error 2
    13:13:54: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project A_Apr9_Mar7_MAR17_CLEAN (kit: Qt 5.15.2 (gcc_64))
    When executing step "Make"
    13:13:54: Elapsed time: 00:52.

    Richard Andrew x64R L 2 Replies Last reply
    0
    • L Lost User

      I have run out of options to resolve this in another forum. The "conclusion " was - it is a linker error... I am asking for help to actually correct the error. There are no other errors posted. This is ALL (of the errors ) I have to go by. I will be happy to provide RELEVANT info , barring " what are you trying to do...". I am deliberately NOT adding more info , for now, I just do not want to derail / influence your ideas of fixing it.

      lib/libQt5SerialPort.so /home/nov25-1/Qt/5.15.2/gcc_64/lib/libQt5Core.so -lGL -lpthread
      /usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23
      mainwindow.o: in function `MainWindow::MainWindow()':
      mainwindow.cpp:(.text+0x270): undefined reference to `ORIGINAL_TERMINAL_MainWindow::ORIGINAL_TERMINAL_MainWindow(QWidget*)'
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      make[1]: Leaving directory '/mnt/A_BT_DEC10/BT__PROGRAMS/A_APR9_MAR7_MAR19_CLEAN/A_BT_LIBRARY/mdi'
      make[1]: *** [Makefile:293: mdi] Error 1
      make: *** [Makefile:569: sub----A_BT_LIBRARY-mdi-make_first] Error 2
      13:13:54: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project A_Apr9_Mar7_MAR17_CLEAN (kit: Qt 5.15.2 (gcc_64))
      When executing step "Make"
      13:13:54: Elapsed time: 00:52.

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      Salvatore Terress wrote:

      I just do not want to derail / influence your ideas of fixing it.

      Is this a quiz?

      The difficult we do right away... ...the impossible takes slightly longer.

      1 Reply Last reply
      0
      • L Lost User

        I have run out of options to resolve this in another forum. The "conclusion " was - it is a linker error... I am asking for help to actually correct the error. There are no other errors posted. This is ALL (of the errors ) I have to go by. I will be happy to provide RELEVANT info , barring " what are you trying to do...". I am deliberately NOT adding more info , for now, I just do not want to derail / influence your ideas of fixing it.

        lib/libQt5SerialPort.so /home/nov25-1/Qt/5.15.2/gcc_64/lib/libQt5Core.so -lGL -lpthread
        /usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23
        mainwindow.o: in function `MainWindow::MainWindow()':
        mainwindow.cpp:(.text+0x270): undefined reference to `ORIGINAL_TERMINAL_MainWindow::ORIGINAL_TERMINAL_MainWindow(QWidget*)'
        clang: error: linker command failed with exit code 1 (use -v to see invocation)
        make[1]: Leaving directory '/mnt/A_BT_DEC10/BT__PROGRAMS/A_APR9_MAR7_MAR19_CLEAN/A_BT_LIBRARY/mdi'
        make[1]: *** [Makefile:293: mdi] Error 1
        make: *** [Makefile:569: sub----A_BT_LIBRARY-mdi-make_first] Error 2
        13:13:54: The process "/usr/bin/make" exited with code 2.
        Error while building/deploying project A_Apr9_Mar7_MAR17_CLEAN (kit: Qt 5.15.2 (gcc_64))
        When executing step "Make"
        13:13:54: Elapsed time: 00:52.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Look at the error message (again):

        mainwindow.cpp:(.text+0x270): undefined reference to `ORIGINAL_TERMINAL_MainWindow::ORIGINAL_TERMINAL_MainWindow(QWidget*)

        In your mainwindow.cpp source you are calling the constructor of the ORIGINAL_TERMINAL_MainWindow class. But the linker did not find a definition of that constructor anywhere in the modules and libraries that are being used to build your application. So you need to find out exactly where it is defined and why the linker cannot find it.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups