<thread> library in QT - stray '\ errors
-
Hi!
I am trying to use <thread> library in QT
http://pastebin.com/JUaRDSTkwhen 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 errorsI 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 x64I will be grateful for any help!
-
Hi,
Did you copy pasted that code ? If so and since it's pretty short just delete the offending lines and rewrite them.
-
Do you mean that it starts happening only if you include <thread> ?
-
In that case, I would uninstall and reinstall the corresponding dev-package to ensure the files are new and clean