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. Errors when porting from Qt 5.15.2 to Qt 6.5.2
Forum Updated to NodeBB v4.3 + New Features

Errors when porting from Qt 5.15.2 to Qt 6.5.2

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 242 Views
  • 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.
  • B Offline
    B Offline
    benjamin_jaeger
    wrote on last edited by
    #1

    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 :

    3b230b7a-b1dd-42a2-8473-fc61ae918a78-grafik.png

    And that is the code :

    3acda2d9-7692-4972-9f4c-3bcc9b379b38-grafik.png

    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.

    jsulmJ JonBJ 2 Replies Last reply
    0
    • B benjamin_jaeger

      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 :

      3b230b7a-b1dd-42a2-8473-fc61ae918a78-grafik.png

      And that is the code :

      3acda2d9-7692-4972-9f4c-3bcc9b379b38-grafik.png

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @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?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • B benjamin_jaeger

        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 :

        3b230b7a-b1dd-42a2-8473-fc61ae918a78-grafik.png

        And that is the code :

        3acda2d9-7692-4972-9f4c-3bcc9b379b38-grafik.png

        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.

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

        @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?

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved