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. New c++ class added with Qt wizard, not compiled
Forum Updated to NodeBB v4.3 + New Features

New c++ class added with Qt wizard, not compiled

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.1k 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.
  • F Offline
    F Offline
    Furkas
    wrote on last edited by
    #1

    I added a C++ class in my project. The .cpp and .h files appears in my directory, and the corresponding lines are added in the .pro file. The editor recognize the new class, as the color appears correct when introducing a new object. But the .obj is never built, and I gor an unresolved external with the new object. The .obj is not built when compiling just the new class file. The only error is "Target debug/xxx.obj doesn't exist.".
    (W10, Qt Creator3.5.1, based Qt5.5.1 (MSVC2013) )
    I hope someone can give me an idea to compile this file.

    1 Reply Last reply
    0
    • JohanSoloJ Offline
      JohanSoloJ Offline
      JohanSolo
      wrote on last edited by
      #2

      Did you rerun qmake?

      `They did not know it was impossible, so they did it.'
      -- Mark Twain

      F 1 Reply Last reply
      0
      • JohanSoloJ JohanSolo

        Did you rerun qmake?

        F Offline
        F Offline
        Furkas
        wrote on last edited by
        #3

        @JohanSolo yes, several times. I removed the "jom" option, and set it again. I changed the compile directory to and fro.
        I suspect a non consistency between the "Compilation step" in the project page, that is "qmake : qmake.exe xxx.pro -r -spec win32-msvc2013 "CONFIG+=debug", with a Win32 mention, and the "Tools/options / Kits", which holds "Desktop Qt 5.5.1 MSVC2013 64bits"
        But I have no idea to get a better consistency.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Furkas
          wrote on last edited by
          #4

          @JohanSolo : pb solved. I create a new project with all the components of the old one, and everything runs well. Maybe it was to run again the configuration step.

          JohanSoloJ 1 Reply Last reply
          0
          • F Furkas

            @JohanSolo : pb solved. I create a new project with all the components of the old one, and everything runs well. Maybe it was to run again the configuration step.

            JohanSoloJ Offline
            JohanSoloJ Offline
            JohanSolo
            wrote on last edited by
            #5

            @Furkas said:

            @JohanSolo : pb solved. I create a new project with all the components of the old one, and everything runs well. Maybe it was to run again the configuration step.

            I'm glad you solved your problem.

            `They did not know it was impossible, so they did it.'
            -- Mark Twain

            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