Errors when porting from Qt 5.15.2 to Qt 6.5.2
-
I am having trouble with porting a project from Qt 5.15.2 to Qt 6.5.2. I am getting 20000 errors that are all related to qassert.h.
Here is the error :
And that is the code :
I really don't understand why it is saying that the function qt_assert isn't declared knowing that the declaration of it is just one line above.
-
@benjamin_jaeger Please post errors/warnings as text, not pictures. Same for code.
You should start with the very first error, following errors can be simply caused by the first one. So, what is the first error you get and what is the code where it occurs?
Also, did you do a complete clean rebuild after switching Qt version? -
@benjamin_jaeger
After you have addressed @jsulm's questions. And maybe tried this in a small, standalone program, not wherever you are now in a big application, with goodness knows what else maybe included.In your https://stackoverflow.com/questions/77389686/q-assert-issues-when-porting-projet-from-qt-5-15-2-to-qt-6-5-2 you were asked what compiler/versions/C++ level you are compiling with?