Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Error ....undefined reference to `operator delete...QT 5.15.2
Forum Update on Monday, May 27th 2025

Error ....undefined reference to `operator delete...QT 5.15.2

Scheduled Pinned Locked Moved Unsolved C++ Gurus
4 Posts 2 Posters 1.4k 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on 16 Nov 2022, 04:11 last edited by
    #1

    Could anybody help me to get started in finding this error ?

    I have a mutiproject project and I think I need to identify which project is actually using the
    libQt5Qml.so. library.

    Would that be a good starting point ?

    For info - I get similar error irregardless which kit I use to compile.
    I was going to build a separate btscanner (example) project to see if the error persist.
    It seems odd that library would not be build with such common operator as "operator delete ".

    make[1]: Nothing to be done for 'first'.
    make[1]: Leaving directory '/mnt/da659056-4bac-42bc-a335-54f4a3167ed0/MDI_WORK_COPY_FOLDER/MDI_BT_Nov_15/MDI_BT/MDI_BT/SUB_FT857'
    make[1]: Entering directory '/mnt/da659056-4bac-42bc-a335-54f4a3167ed0/MDI_WORK_COPY_FOLDER/MDI_BT_Nov_15/MDI_BT/MDI_BT/WebSDR'
    make[1]: Nothing to be done for 'first'.
    make[1]: Leaving directory '/mnt/da659056-4bac-42bc-a335-54f4a3167ed0/MDI_WORK_COPY_FOLDER/MDI_BT_Nov_15/MDI_BT/MDI_BT/WebSDR'
    /usr/bin/ld: /home/q1/Qt/5.15.2/gcc_64/lib/libQt5Qml.so.5: undefined reference to operator delete[](void*, unsigned long)@Qt_5' /usr/bin/ld: /mnt/da659056-4bac-42bc-a335-54f4a3167ed0/MDI_WORK_COPY_FOLDER/MDI_BT_Nov_15/SOURCE/mdi/../bluetooth/btscanner//libbtscanner.so: undefined reference to operator delete(void*, unsigned long)@Qt_5'
    collect2: error: ld returned 1 exit status
    make[1]: Leaving directory '/mnt/da659056-4bac-42bc-a335-54f4a3167ed0/MDI_WORK_COPY_FOLDER/MDI_BT_Nov_15/SOURCE/mdi'
    make[1]: *** [Makefile:369: mdi] Error 1
    make: *** [Makefile:216: sub-------SOURCE-mdi-make_first] Error 2
    21:46:36: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project MDI_BT (kit: Replacement for "Desktop")
    When executing step "Make"
    21:46:36: Elapsed time: 00:16.

    J 1 Reply Last reply 16 Nov 2022, 07:02
    0
    • A Anonymous_Banned275
      16 Nov 2022, 04:11

      Could anybody help me to get started in finding this error ?

      I have a mutiproject project and I think I need to identify which project is actually using the
      libQt5Qml.so. library.

      Would that be a good starting point ?

      For info - I get similar error irregardless which kit I use to compile.
      I was going to build a separate btscanner (example) project to see if the error persist.
      It seems odd that library would not be build with such common operator as "operator delete ".

      make[1]: Nothing to be done for 'first'.
      make[1]: Leaving directory '/mnt/da659056-4bac-42bc-a335-54f4a3167ed0/MDI_WORK_COPY_FOLDER/MDI_BT_Nov_15/MDI_BT/MDI_BT/SUB_FT857'
      make[1]: Entering directory '/mnt/da659056-4bac-42bc-a335-54f4a3167ed0/MDI_WORK_COPY_FOLDER/MDI_BT_Nov_15/MDI_BT/MDI_BT/WebSDR'
      make[1]: Nothing to be done for 'first'.
      make[1]: Leaving directory '/mnt/da659056-4bac-42bc-a335-54f4a3167ed0/MDI_WORK_COPY_FOLDER/MDI_BT_Nov_15/MDI_BT/MDI_BT/WebSDR'
      /usr/bin/ld: /home/q1/Qt/5.15.2/gcc_64/lib/libQt5Qml.so.5: undefined reference to operator delete[](void*, unsigned long)@Qt_5' /usr/bin/ld: /mnt/da659056-4bac-42bc-a335-54f4a3167ed0/MDI_WORK_COPY_FOLDER/MDI_BT_Nov_15/SOURCE/mdi/../bluetooth/btscanner//libbtscanner.so: undefined reference to operator delete(void*, unsigned long)@Qt_5'
      collect2: error: ld returned 1 exit status
      make[1]: Leaving directory '/mnt/da659056-4bac-42bc-a335-54f4a3167ed0/MDI_WORK_COPY_FOLDER/MDI_BT_Nov_15/SOURCE/mdi'
      make[1]: *** [Makefile:369: mdi] Error 1
      make: *** [Makefile:216: sub-------SOURCE-mdi-make_first] Error 2
      21:46:36: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project MDI_BT (kit: Replacement for "Desktop")
      When executing step "Make"
      21:46:36: Elapsed time: 00:16.

      J Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 16 Nov 2022, 07:02 last edited by
      #2

      @AnneRanch pass -lstdc++ to your linker call


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      A 1 Reply Last reply 16 Nov 2022, 15:04
      0
      • J J.Hilk
        16 Nov 2022, 07:02

        @AnneRanch pass -lstdc++ to your linker call

        A Offline
        A Offline
        Anonymous_Banned275
        wrote on 16 Nov 2022, 15:04 last edited by
        #3

        @J-Hilk said in Error ....undefined reference to `operator delete...QT 5.15.2:

        pass -lstdc++ to your linker call

        OK, I looked at this

        https://doc.qt.io/qtcreator/creator-cli.html

        That tells me I can add linker options to QTCreator command line.

        I do not get why I have to use command line and not compiler / linker option line gcc

        Also why this cannot be done in QT configuration ?

        Of course the final question - why do I have to do this at all ?

        I did build btscanner example and have no issues with this library, it does no seem to be used at all in btscanner example.
        I have not seen this error in past , so why all of the sudden I get this error , especially when my subdir program does not use btscanner at the moment.

        I am sorry to ask all this, but I am really concerned HOW to initially setup QT when I
        a. load new OS - Ubuntu
        b. install QT

        It seems , to me, there are no comprehensive instructions how to do this initial setup.
        It is all "hit and miss" ....

        A 1 Reply Last reply 16 Nov 2022, 17:13
        0
        • A Anonymous_Banned275
          16 Nov 2022, 15:04

          @J-Hilk said in Error ....undefined reference to `operator delete...QT 5.15.2:

          pass -lstdc++ to your linker call

          OK, I looked at this

          https://doc.qt.io/qtcreator/creator-cli.html

          That tells me I can add linker options to QTCreator command line.

          I do not get why I have to use command line and not compiler / linker option line gcc

          Also why this cannot be done in QT configuration ?

          Of course the final question - why do I have to do this at all ?

          I did build btscanner example and have no issues with this library, it does no seem to be used at all in btscanner example.
          I have not seen this error in past , so why all of the sudden I get this error , especially when my subdir program does not use btscanner at the moment.

          I am sorry to ask all this, but I am really concerned HOW to initially setup QT when I
          a. load new OS - Ubuntu
          b. install QT

          It seems , to me, there are no comprehensive instructions how to do this initial setup.
          It is all "hit and miss" ....

          A Offline
          A Offline
          Anonymous_Banned275
          wrote on 16 Nov 2022, 17:13 last edited by
          #4

          @AnneRanch ABANDONED
          I have found another full copy of my project.
          Without any modification - using same kit and same version of Ubuntu - it compiles and run .
          I am loosing patience to troubleshoot tools looking for weird failures like this one, I like to spent my time doing constructive work and I need to continue building my project.
          However, I do appreciate the forum replies...
          Cheers

          1 Reply Last reply
          0

          1/4

          16 Nov 2022, 04:11

          • Login

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