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. how to solve STL1000 error
Forum Updated to NodeBB v4.3 + New Features

how to solve STL1000 error

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 2.6k 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
    Blackzero
    wrote on last edited by
    #1

    I don't know why this happened, previously there was a problem with CL.exe but after I restarted the qt creator CL.exe did not have an error and the project could be run but the problem is that this error appears, all cpp dah h files have the same error but the project can still be run, how can I solve it?

    error: In included file: static assertion failed: error STL1000: Unexpected compiler version, expected Clang 17.0.0 or newer.
    
    1 Reply Last reply
    1
    • cristian-adamC Online
      cristian-adamC Online
      cristian-adam
      wrote on last edited by
      #2

      I assume you are using a clangd which is older than 17.0.0. Qt Creator 13 https://download.qt.io/official_releases/qtcreator/13.0/ is using clangd from LLVM / Clang 17.0.6, which should pass the check.

      B 1 Reply Last reply
      0
      • cristian-adamC cristian-adam

        I assume you are using a clangd which is older than 17.0.0. Qt Creator 13 https://download.qt.io/official_releases/qtcreator/13.0/ is using clangd from LLVM / Clang 17.0.6, which should pass the check.

        B Offline
        B Offline
        Blackzero
        wrote on last edited by
        #3

        @cristian-adam Do I have to update the qt creator or replace the clang manually?

        1 Reply Last reply
        0
        • cristian-adamC Online
          cristian-adamC Online
          cristian-adam
          wrote on last edited by
          #4

          You can do either or another. Newer Qt Creator versions come with newer ClangD version.

          But in Preferences... > C++ > Clangd you can specify a path to the clangd executable.

          I 1 Reply Last reply
          1
          • cristian-adamC cristian-adam

            You can do either or another. Newer Qt Creator versions come with newer ClangD version.

            But in Preferences... > C++ > Clangd you can specify a path to the clangd executable.

            I Offline
            I Offline
            Igarugueri
            wrote on last edited by
            #5

            @cristian-adam I had the same error. I downloaded the latest version of Clang, and indeed, changing the path in the clangd tab to the new path solves the problem. So, the error itself is not about the compiler, which had completely misled me, but about the clangd.exe file, which is a language server for C/C++ that provides advanced features such as code completion, code navigation, and refactoring. Thanks.

            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