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. <thread> library in QT - stray '\ errors
Forum Updated to NodeBB v4.3 + New Features

<thread> library in QT - stray '\ errors

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 1.6k 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.
  • X Offline
    X Offline
    x64joxer
    wrote on last edited by
    #1

    Hi!
    I am trying to use <thread> library in QT
    http://pastebin.com/JUaRDSTk

    when I try to compile program (witch #include <thread>) a lot of errors appear:
    stray '\177' in program
    stray '\2' in program
    .
    .
    .
    etc.
    Several thousands of similar errors

    I tried to add flags -pthread and -std=c++11 in g++ (Platform codegen flags) but errors still appears.
    I am using:
    Qt 5.5.0 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 64 bits)
    KUbuntu 15 x64

    I will be grateful for any help!

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

      Hi,

      Did you copy pasted that code ? If so and since it's pretty short just delete the offending lines and rewrite them.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      X 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Did you copy pasted that code ? If so and since it's pretty short just delete the offending lines and rewrite them.

        X Offline
        X Offline
        x64joxer
        wrote on last edited by
        #3

        @SGaist
        Hi!
        <thread> it is a standard std library.
        Is it possible that standard library contains bugs on the latest version of Kubuntu?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Do you mean that it starts happening only if you include <thread> ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          X 1 Reply Last reply
          0
          • SGaistS SGaist

            Do you mean that it starts happening only if you include <thread> ?

            X Offline
            X Offline
            x64joxer
            wrote on last edited by
            #5

            @SGaist
            Yes

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              In that case, I would uninstall and reinstall the corresponding dev-package to ensure the files are new and clean

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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