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. Project fails to compile in debug mode
Forum Updated to NodeBB v4.3 + New Features

Project fails to compile in debug mode

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 2.2k 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.
  • A Offline
    A Offline
    adnan
    wrote on last edited by
    #1

    My project compiles and runs perfectly in release mode, but when I use debug mode, i get around 22 errors
    @
    in function qwait.
    undefined reference to Qtest::qsleep.
    undefined reference to Qtest::defaultkeyDelay@

    I havent used qwait or qtest lib anywhere in my program.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      What is your OS and IDE you are using?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adnan
        wrote on last edited by
        #3

        Ubuntu 12.04 and Qt Creator , Qt 4.8.2
        I have been using Qt since last year, this is the first time i am seeing this error

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          I have not a lot of experience qith creator and linux. Assuming that you tried already rerunning qmake, you may want to check the pro file and its includes if there is a reference to testlib.
          Another possibility could be that you are using a header which is testing a macro settings you are defining only in debug compile. But all is poking into the fog from my side.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • G Offline
            G Offline
            guziemic
            wrote on last edited by
            #5

            Did you put
            #include <QTest>
            in source file?

            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