Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
<thread> library in QT - stray '\ errors
I am trying to use <thread> library in QT
when I try to compile program (witch #include <thread>) a lot of errors appear:
stray '\177' in program
stray '\2' in program
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!
Did you copy pasted that code ? If so and since it's pretty short just delete the offending lines and rewrite them.
<thread> it is a standard std library.
Is it possible that standard library contains bugs on the latest version of Kubuntu?
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