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. Undefined Reference - But not Really
Forum Updated to NodeBB v4.3 + New Features

Undefined Reference - But not Really

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 495 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.
  • ModelTechM Offline
    ModelTechM Offline
    ModelTech
    wrote on last edited by
    #1

    I have a very weird error. I get the following error when compiling (from Qt Creator)

    error: undefined reference to `Class::Method'
    collect2: error: ld returned 1 exit status
    

    The thing is however that Class::Method does exist and is also recognised by the autocompletion facility of Qt Creator. Any ideas what i might be doing wrong here?

    raven-worxR 1 Reply Last reply
    0
    • ModelTechM ModelTech

      I have a very weird error. I get the following error when compiling (from Qt Creator)

      error: undefined reference to `Class::Method'
      collect2: error: ld returned 1 exit status
      

      The thing is however that Class::Method does exist and is also recognised by the autocompletion facility of Qt Creator. Any ideas what i might be doing wrong here?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @ModelTech
      this error means that either the implementation is missing or that the obj containing implementation is not linked into your binary.
      If you are sure that the implementation body is there, a simple rerun of qmake might already solve the problem.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      3
      • ModelTechM Offline
        ModelTechM Offline
        ModelTech
        wrote on last edited by
        #3

        Yep, that was it: implementation was missing. Thanks.

        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