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. What happens in the IDE to break the build?

What happens in the IDE to break the build?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 407 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #1

    I've experience the same problem in several projects in Qt Creator over several versions including the latest.

    It seems that for no good reason a build can be broken without any source code changes.

    A typical error that comes up during build:

        undefined reference to `DialogCardPolling::on_LabelContactStatus_windowIconTextChanged(QString const&)'
    

    Nothing has been changed in this source. I've found that re-opening the .ui file and saving can fix these, but why does it keep occurring?

    Kind Regards,
    Sy

    KillerSmathK 1 Reply Last reply
    0
    • SPlattenS SPlatten

      I've experience the same problem in several projects in Qt Creator over several versions including the latest.

      It seems that for no good reason a build can be broken without any source code changes.

      A typical error that comes up during build:

          undefined reference to `DialogCardPolling::on_LabelContactStatus_windowIconTextChanged(QString const&)'
      

      Nothing has been changed in this source. I've found that re-opening the .ui file and saving can fix these, but why does it keep occurring?

      KillerSmathK Offline
      KillerSmathK Offline
      KillerSmath
      wrote on last edited by
      #2

      Hi @SPlatten

      I guess you are facing a problem of different timestamp between the Object and Source file.

      https://www.cprogramming.com/compilingandlinking.html

      In short, the compiler does not need to recompile every files of your project. Instead of that, it compare the timestamp between each object and source files and if the source file is newer than object so it should be recompiled and relinked otherwise it will skip.

      But when you edit your file on one machine and compile on another machine, it may happen that the source file has a timestamp older than the object file. It is a classical problem of distributed editor

      @Computer Science Student - Brazil
      Web Developer and Researcher
      “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

      1 Reply Last reply
      1
      • SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on last edited by
        #3

        I'm working on a virtual machine, the project that I encountered the problem with hadn't been modified, but when I recompile it started reporting build errors.

        I then restored the build from a backup and all is now ok again.

        Kind Regards,
        Sy

        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