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. The vtable symbol may be undefined. Why?
Forum Updated to NodeBB v4.3 + New Features

The vtable symbol may be undefined. Why?

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 5 Posters 4.4k Views 2 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.
  • B Offline
    B Offline
    bogong
    wrote on last edited by bogong
    #1

    Hello all!

    I've got this error:

    the vtable symbol may be undefined because the class is missing its key function
    

    Why is that and how to fix it? I've never been having this troubles before.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What class is that ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What class is that ?

        B Offline
        B Offline
        bogong
        wrote on last edited by
        #3

        @SGaist Could you be pleased - IGNORE my messages. I've got a lot of your senseless replies.

        C 1 Reply Last reply
        -4
        • B Offline
          B Offline
          bogong
          wrote on last edited by bogong
          #4

          I found this:
          https://www.xspdf.com/resolution/55125387.html
          https://stackoverflow.com/questions/45850063/what-is-a-c-key-function-as-described-by-gold

          But all of this errors from boost library that is in static lib. Am I missing any flags when building Boost for linker or something similar? It's happening only on Android, for iOS/MacOS all is OK.

          1 Reply Last reply
          0
          • Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @bogong said in The vtable symbol may be undefined. Why?:

            But all of this errors from boost library that is in static lib.

            So where is the relation to Qt here?

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

            B 1 Reply Last reply
            0
            • Christian EhrlicherC Christian Ehrlicher

              @bogong said in The vtable symbol may be undefined. Why?:

              But all of this errors from boost library that is in static lib.

              So where is the relation to Qt here?

              B Offline
              B Offline
              bogong
              wrote on last edited by bogong
              #6

              @Christian-Ehrlicher I am trying to use it in QT Application. And don't see when building with Qt Creator. When directly with clang - all is OK.

              mrjjM 1 Reply Last reply
              0
              • B bogong

                @Christian-Ehrlicher I am trying to use it in QT Application. And don't see when building with Qt Creator. When directly with clang - all is OK.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @bogong
                Did you see
                https://lld.llvm.org/missingkeyfunction.html
                I never saw this error before so not sure its related.

                B 1 Reply Last reply
                2
                • B bogong

                  @SGaist Could you be pleased - IGNORE my messages. I've got a lot of your senseless replies.

                  C Offline
                  C Offline
                  ChrisW67
                  wrote on last edited by
                  #8

                  @bogong Perhaps SGaist's question is not "senseless"

                  You quote a partial linker warning message from an unspecified tool chain, on an unspecified platform, compiling/linking unspecified code, that may or may not be related to Qt, and expect responses that are not the obvious questions needed to work out any of that. Care to fill in any of the blanks?

                  If the code is using Qt and the class concerned in the error message is related to a QObject derived class then messages of this sort can arise because a Q_OBJECT macro has been omitted.

                  1 Reply Last reply
                  3
                  • mrjjM mrjj

                    @bogong
                    Did you see
                    https://lld.llvm.org/missingkeyfunction.html
                    I never saw this error before so not sure its related.

                    B Offline
                    B Offline
                    bogong
                    wrote on last edited by bogong
                    #9

                    @mrjj It's somehow related. But I should in this case change Boost sources. It's working for iOS/MacOS but failing when building it for Android only. It's very surprised because I am using old version of Boost. There might be the problem in the flags for compiler when I am trying to build static Boost library, there are b2 compiler that has own syntax. For now reading requirements for building *.so and *.a libraries for Android.

                    1 Reply Last reply
                    1

                    • Login

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