Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29578

no member named 'int8_t' in the global namespace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 11.0.2
    • None
    • Linux/Wayland

      Problem:

      Getting the following error when trying to build a basic new "Qt Widgets Application" via clang:

      main.cpp:1:10: In included file: no member named 'int8_t' in the global namespace /usr/include/c++/13/cstdint:51:11: note: error occurred here

      The error is shown in-front of line 1 in `main.cpp`:

      #include "mainwindow.h" 

       

      How to reproduce:
      1. Open QtCreator
      2. Create a new "Qt Widgets Application"
      3. Choose "Desktop Qt 6.5.2 Clang 64bit" as the active development kit
      4. You will find the error shown immediately from the language server

       

      Notes:
      1. Project folders are attached
      2. A screenshot of the error is attached
      3. The program compiles and runs fine, it's a language server generated error
      4. This problem does not happen with "Desktop Qt 6.5.2 GCC 64bit"
      5. Clang version is in the environment info

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            famouskeeper lmmsdf ojjdkfd
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes