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 to my own Class?
Qt 6.11 is out! See what's new in the release blog

Undefined Reference to my own Class?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 877 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.
  • S Offline
    S Offline
    Spirrwell
    wrote on last edited by
    #1

    Hi there. I feel that this just seems like a noobish question, however, I have a Quaternion class that I completely copied from another project and I've done it multiple times without a problem, but for some reason with Qt, I'm getting 40+ undefined references.

    http://i.imgur.com/UtCAWsz.png

    They all seem to have something to do with those operator overload functions. Does anybody have any idea what's going on? Is there more information that you guys need in order to help me out?

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

      hi
      And you did add the .cpp too ?
      are those files in same folder as rest of project or in sub folder?

      S 1 Reply Last reply
      0
      • mrjjM mrjj

        hi
        And you did add the .cpp too ?
        are those files in same folder as rest of project or in sub folder?

        S Offline
        S Offline
        Spirrwell
        wrote on last edited by
        #3

        @mrjj Oh wow, I'm such a dunce. I didn't copy the Quaternion.cpp file. My bad. Now I really look like a beginner. Haha. Sorry to waste your guy's time!

        mrjjM 1 Reply Last reply
        0
        • S Spirrwell

          @mrjj Oh wow, I'm such a dunce. I didn't copy the Quaternion.cpp file. My bad. Now I really look like a beginner. Haha. Sorry to waste your guy's time!

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

          @Spirrwell
          hi, its really not a issue. And trust me, it's not even
          close to the most beginner thing i seen :)
          Just mark as solved and all is lovely :)

          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