Solved Compilation errors with Qt6 and QtConcurrent::run
-
I would start with a clean simple main.cpp and include the header to see if it compiles.
-
I just tried this and yes, it does compile.
One more detail : the project compiled fine some hours ago, and the changes i made since don't concern the class containing the QtConcurrent::run call.
-
@Dvassily Try a complete rebuild: delete build folder, run qmake and build
-
I already tried the complete rebuild : nothing changed.
By the way, i don't use qmake.
-
@Dvassily What is the very first error message you get?
-
The first error message is "missing type spcifier - int assumed. Note: C++ does not support default-int" in qfuture_impl.h at line 175.
-
Move the header up until the error no longer occurs. Daily programming business...
-
It solved the problem. Thank you !
-
@Dvassily I think it would be interesting for others what the problem was. And don't forget to mark the thread as solved then.
-
This post is deleted!