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

size_t is undefined

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: Qt Creator 4.12.0, Qt Creator 4.13.0-beta1
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      Debian bullseye/sid, llvm10, gcc10
    • Platform/s:
      Linux/X11

      Description

      size_t is undefined. Appears to be that the code model is using gcc headers instead of clang headers.

      qtc run with QT_LOGGING_RULES=qtc.clang*=true

      Including the absolute location of clang's stddef fixes the code model's complaint.

      #include </usr/lib/llvm-10/lib/clang/10.0.0/include/stddef.h>

       

       

      This appears related to QTCREATORBUG-22898, QTCREATORBUG-23451QTCREATORBUG-23534

       

       10:03:38: Starting /home/daniel/build/qt-creator/Desktop_Qt_5_12_5/Debug/bin/qtcreator ...
      qtc.clangcodemodel.ipc: Starting "/home/daniel/build/qt-creator/Desktop_Qt_5_12_5/Debug/libexec/qtcreator/clangbackend"
      : CommandLine Error: Option 'help-list' registered more than once!
      LLVM ERROR: inconsistency in registered CommandLine options
      : CommandLine Error: Option 'disable-symbolication' registered more than once!
      LLVM ERROR: inconsistency in registered CommandLine options
      Cannot update Qt version information: /usr/lib/x86_64-linux-gnu/qt4/bin/qmake cannot be run.
      "Warning reading /home/daniel/.config/QtProject/qtcreator/default.qws:45: Failed to read element \"value\"."
      qtc.clangcodemodel.ipc: ====> DocumentVisibilityChangedMessage(, )
      qtc.clangbackend.server: ########## documentVisibilityChanged
      qtc.clangbackend.timers: ClangCodeModelServer::documentVisibilityChanged needed 0 ms
      "Warning reading /home/daniel/.config/QtProject/qtcreator/default.qws:45: Failed to read element \"value\"."
      qtc.clangcodemodel.ipc: Hint: AliveMessage will not be printed. Force it by setting QTC_CLANG_FORCE_VERBOSE_ALIVE=1.
      kf5.kio.core: "Could not enter folder tags:/."
      qtc.clangcodemodel.ipc: ====> DocumentVisibilityChangedMessage(/home/daniel/Temp/size_t_error/main.cpp, /home/daniel/Temp/size_t_error/main.cpp, )
      qtc.clangbackend.server: ########## documentVisibilityChanged
      qtc.clangbackend.timers: ClangCodeModelServer::documentVisibilityChanged needed 0 ms
      qtc.clangcodemodel.ipc: ====> DocumentsOpenedMessage(FileContainer(/home/daniel/Temp/size_t_error/main.cpp, Utf8StringVector(-nostdinc, -nostdinc++, -g, -fPIE, -fPIC, -std=gnu++11, -fsyntax-only, -m64, --target=x86_64-linux-gnu, -fcxx-exceptions, -fexceptions, -DQ_CREATOR_RUN, -DQT_CORE_LIB, -DQT_GUI_LIB, -DQT_WIDGETS_LIB, -I, /home/daniel/build/qt-creator/Desktop_Qt_5_12_5/Debug/share/qtcreator/cplusplus/wrappedQtHeaders, -I, /home/daniel/build/qt-creator/Desktop_Qt_5_12_5/Debug/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore, -I, /tmp/QtCreator-IrXSUK/qtc-cmake-vsnbMhyZ, -I, /home/daniel/Temp/size_t_error, -I, /tmp/QtCreator-IrXSUK/qtc-cmake-vsnbMhyZ/size_t_error_autogen/include, -I, /usr/include/x86_64-linux-gnu/qt5, -I, /usr/include/x86_64-linux-gnu/qt5/QtWidgets, -I, /usr/include/x86_64-linux-gnu/qt5/QtGui, -I, /usr/include/x86_64-linux-gnu/qt5/QtCore, -I, /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++, -isystem, /usr/include/c++/9, -isystem, /usr/include/x86_64-linux-gnu/c++/9, -isystem, /usr/include/c++/9/backward, -isystem, /usr/local/include, -isystem, , -isystem, /usr/include/x86_64-linux-gnu, -isystem, /usr/include, -I, /tmp/QtCreator-IrXSUK/clang-uiheader-ZQuIzW, -fmessage-length=0, -fdiagnostics-show-note-include-stack, -fretain-comments-from-system-headers, -fmacro-backtrace-limit=0, -ferror-limit=1000, -x, c++, -Wno-unknown-pragmas, -Wno-unknown-warning-option, -Wno-documentation-unknown-command, -Wall, -Wextra), Utf8StringVector(/tmp/QtCreator-IrXSUK/qtc-cmake-vsnbMhyZ, /home/daniel/Temp/size_t_error, /tmp/QtCreator-IrXSUK/qtc-cmake-vsnbMhyZ/size_t_error_autogen/include, /usr/include/x86_64-linux-gnu/qt5, /usr/include/x86_64-linux-gnu/qt5/QtWidgets, /usr/include/x86_64-linux-gnu/qt5/QtGui, /usr/include/x86_64-linux-gnu/qt5/QtCore, /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++, /usr/include/c++/9, /usr/include/x86_64-linux-gnu/c++/9, /usr/include/c++/9/backward, /usr/lib/gcc/x86_64-linux-gnu/9/include, /usr/local/include, /usr/include/x86_64-linux-gnu, /usr/include, /tmp/QtCreator-IrXSUK/clang-uiheader-ZQuIzW), 1, , </tmp/qtc-clangsupport-tqjOSl/unsavedfilecontent-main.cpp-obcgIn>), /home/daniel/Temp/size_t_error/main.cpp, /home/daniel/Temp/size_t_error/main.cpp, )
      qtc.clangbackend.server: ########## documentsOpened
      qtc.clangbackend.translationunits: Creating TranslationUnit {e54db07c-b155-45d2-b21b-5f957275630b} for "main.cpp"
      qtc.clangbackend.jobs: [ main.cpp ] Adding Job<1,"main.cpp",UpdateAnnotations,PreviouslyParsed>
      qtc.clangbackend.jobs: [ main.cpp ] Adding Job<2,"main.cpp",UpdateExtraAnnotations,RecentlyParsed>
      qtc.clangbackend.jobs: [ main.cpp ] Not choosing due to dirty document: Job<2,"main.cpp",UpdateExtraAnnotations,RecentlyParsed>
      qtc.clangbackend.jobs: [ main.cpp ] Running Job<1,"main.cpp",UpdateAnnotations,PreviouslyParsed> with TranslationUnit {e54db07c-b155-45d2-b21b-5f957275630b}
      qtc.clangbackend.timers: ClangCodeModelServer::documentsOpened needed 0 ms
      Arguments to libclang: -nostdinc -nostdinc++ -g -fPIE -fPIC -std=gnu++11 -fsyntax-only -m64 --target=x86_64-linux-gnu -fcxx-exceptions -fexceptions -DQ_CREATOR_RUN -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -I /home/daniel/build/qt-creator/Desktop_Qt_5_12_5/Debug/share/qtcreator/cplusplus/wrappedQtHeaders -I /home/daniel/build/qt-creator/Desktop_Qt_5_12_5/Debug/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore -I /tmp/QtCreator-IrXSUK/qtc-cmake-vsnbMhyZ -I /home/daniel/Temp/size_t_error -I /tmp/QtCreator-IrXSUK/qtc-cmake-vsnbMhyZ/size_t_error_autogen/include -I /usr/include/x86_64-linux-gnu/qt5 -I /usr/include/x86_64-linux-gnu/qt5/QtWidgets -I /usr/include/x86_64-linux-gnu/qt5/QtGui -I /usr/include/x86_64-linux-gnu/qt5/QtCore -I /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/c++/9 -isystem /usr/include/x86_64-linux-gnu/c++/9 -isystem /usr/include/c++/9/backward -isystem /usr/local/include -isystem '' -isystem /usr/include/x86_64-linux-gnu -isystem /usr/include -I /tmp/QtCreator-IrXSUK/clang-uiheader-ZQuIzW -fmessage-length=0 -fdiagnostics-show-note-include-stack -fretain-comments-from-system-headers -fmacro-backtrace-limit=0 -ferror-limit=1000 -x c++ -Wno-unknown-pragmas -Wno-unknown-warning-option -Wno-documentation-unknown-command -Wall -Wextra -v /home/daniel/Temp/size_t_error/main.cpp
      clang version 10.0.0-4 
      Target: x86_64-unknown-linux-gnu
      Thread model: posix
      InstalledDir: 
      Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6
      Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6.5.0
      Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/7
      Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/7.5.0
      Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/8
      Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/9
      Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
      Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.5.0
      Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
      Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
      Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
      Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
      Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
      Candidate multilib: .;@m64
      Candidate multilib: 32;@m32
      Candidate multilib: x32;@mx32
      Selected multilib: .;@m64
      ignoring nonexistent directory "/tmp/QtCreator-IrXSUK/qtc-cmake-vsnbMhyZ/size_t_error_autogen/include"
      ignoring nonexistent directory ""
      #include "..." search starts here:
      #include <...> search starts here:
       /home/daniel/build/qt-creator/Desktop_Qt_5_12_5/Debug/share/qtcreator/cplusplus/wrappedQtHeaders
       /home/daniel/build/qt-creator/Desktop_Qt_5_12_5/Debug/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore
       /tmp/QtCreator-IrXSUK/qtc-cmake-vsnbMhyZ
       /home/daniel/Temp/size_t_error
       /usr/include/x86_64-linux-gnu/qt5
       /usr/include/x86_64-linux-gnu/qt5/QtWidgets
       /usr/include/x86_64-linux-gnu/qt5/QtGui
       /usr/include/x86_64-linux-gnu/qt5/QtCore
       /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++
       /tmp/QtCreator-IrXSUK/clang-uiheader-ZQuIzW
       /usr/include/c++/9
       /usr/include/x86_64-linux-gnu/c++/9
       /usr/include/c++/9/backward
       /usr/local/include
       /usr/include/x86_64-linux-gnu
       /usr/include
      End of search list.
      ignoring nonexistent directory "/tmp/QtCreator-IrXSUK/qtc-cmake-vsnbMhyZ/size_t_error_autogen/include"
      ignoring nonexistent directory ""
      #include "..." search starts here:
      #include <...> search starts here:
       /home/daniel/build/qt-creator/Desktop_Qt_5_12_5/Debug/share/qtcreator/cplusplus/wrappedQtHeaders
       /home/daniel/build/qt-creator/Desktop_Qt_5_12_5/Debug/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore
       /tmp/QtCreator-IrXSUK/qtc-cmake-vsnbMhyZ
       /home/daniel/Temp/size_t_error
       /usr/include/x86_64-linux-gnu/qt5
       /usr/include/x86_64-linux-gnu/qt5/QtWidgets
       /usr/include/x86_64-linux-gnu/qt5/QtGui
       /usr/include/x86_64-linux-gnu/qt5/QtCore
       /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++
       /tmp/QtCreator-IrXSUK/clang-uiheader-ZQuIzW
       /usr/include/c++/9
       /usr/include/x86_64-linux-gnu/c++/9
       /usr/include/c++/9/backward
       /usr/local/include
       /usr/include/x86_64-linux-gnu
       /usr/include
      End of search list.
      /usr/include/c++/9/cstddef:50:10: error: 'stddef.h' file not found
      /usr/include/c++/9/cstddef:58:11: error: no member named 'max_align_t' in the global namespace
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:51:12: error: 'stddef.h' file not found
      /usr/include/stdlib.h:31:10: error: 'stddef.h' file not found
      /usr/include/stdlib.h:97:8: error: unknown type name 'size_t'
      /usr/include/stdlib.h:212:36: error: unknown type name 'size_t'
      /usr/include/stdlib.h:216:36: error: unknown type name 'size_t'
      /usr/include/stdlib.h:220:36: error: unknown type name 'size_t'
      /usr/include/stdlib.h:232:38: error: unknown type name 'size_t'
      /usr/include/stdlib.h:238:38: error: unknown type name 'size_t'
      /usr/include/stdlib.h:250:39: error: unknown type name 'size_t'
      /usr/include/stdlib.h:256:39: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/sys/types.h:144:10: error: 'stddef.h' file not found
      /usr/include/stdlib.h:411:4: error: unknown type name 'size_t'
      /usr/include/stdlib.h:441:4: error: unknown type name 'size_t'
      /usr/include/stdlib.h:539:22: error: unknown type name 'size_t'
      /usr/include/stdlib.h:542:22: error: unknown type name 'size_t'
      /usr/include/stdlib.h:542:38: error: unknown type name 'size_t'
      /usr/include/stdlib.h:550:36: error: unknown type name 'size_t'
      /usr/include/stdlib.h:559:41: error: unknown type name 'size_t'
      /usr/include/stdlib.h:559:57: error: unknown type name 'size_t'
      /usr/include/alloca.h:24:10: error: 'stddef.h' file not found
      /usr/include/alloca.h:32:22: error: unknown type name 'size_t'
      /usr/include/stdlib.h:574:22: error: unknown type name 'size_t'
      /usr/include/stdlib.h:580:45: error: unknown type name 'size_t'
      /usr/include/stdlib.h:580:65: error: unknown type name 'size_t'
      /usr/include/stdlib.h:586:29: error: unknown type name 'size_t'
      /usr/include/stdlib.h:586:49: error: unknown type name 'size_t'
      /usr/include/stdlib.h:821:9: error: unknown type name 'size_t'
      /usr/include/stdlib.h:821:25: error: unknown type name 'size_t'
      /usr/include/stdlib.h:830:34: error: unknown type name 'size_t'
      /usr/include/stdlib.h:830:50: error: unknown type name 'size_t'
      /usr/include/stdlib.h:833:36: error: unknown type name 'size_t'
      /usr/include/stdlib.h:833:52: error: unknown type name 'size_t'
      /usr/include/stdlib.h:904:6: error: unknown type name 'size_t'
      /usr/include/stdlib.h:907:6: error: unknown type name 'size_t'
      /usr/include/stdlib.h:911:31: error: unknown type name 'size_t'
      /usr/include/stdlib.h:915:31: error: unknown type name 'size_t'
      /usr/include/stdlib.h:922:36: error: unknown type name 'size_t'
      /usr/include/stdlib.h:926:34: error: unknown type name 'size_t'
      /usr/include/stdlib.h:933:8: error: unknown type name 'size_t'
      /usr/include/stdlib.h:934:32: error: unknown type name 'size_t'
      /usr/include/stdlib.h:936:8: error: unknown type name 'size_t'
      /usr/include/stdlib.h:937:38: error: unknown type name 'size_t'
      /usr/include/stdlib.h:992:46: error: unknown type name 'size_t'
      /usr/include/c++/9/bits/cxxabi_init_exception.h:38:10: error: 'stddef.h' file not found
      /usr/include/c++/9/bits/cxxabi_init_exception.h:63:32: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:451:15: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:925:36: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:925:49: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:926:48: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:926:61: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:926:77: error: unknown type name 'size_t'
      /usr/include/string.h:33:10: error: 'stddef.h' file not found
      /usr/include/string.h:44:8: error: unknown type name 'size_t'
      /usr/include/string.h:47:56: error: unknown type name 'size_t'
      /usr/include/string.h:55:18: error: unknown type name 'size_t'
      /usr/include/string.h:61:42: error: unknown type name 'size_t'
      /usr/include/string.h:64:56: error: unknown type name 'size_t'
      /usr/include/string.h:71:42: error: unknown type name 'size_t'
      /usr/include/string.h:73:54: error: unknown type name 'size_t'
      /usr/include/string.h:110:49: error: unknown type name 'size_t'
      /usr/include/string.h:112:61: error: unknown type name 'size_t'
      /usr/include/string.h:126:39: error: unknown type name 'size_t'
      /usr/include/string.h:134:9: error: unknown type name 'size_t'
      /usr/include/string.h:140:57: error: unknown type name 'size_t'
      /usr/include/string.h:147:8: error: unknown type name 'size_t'
      /usr/include/string.h:148:40: error: unknown type name 'size_t'
      /usr/include/string.h:160:8: error: unknown type name 'size_t'
      /usr/include/string.h:160:59: error: unknown type name 'size_t'
      /usr/include/string.h:175:45: error: unknown type name 'size_t'
      /usr/include/string.h:273:8: error: unknown type name 'size_t'
      /usr/include/string.h:277:8: error: unknown type name 'size_t'
      /usr/include/string.h:369:46: error: unknown type name 'size_t'
      /usr/include/string.h:370:30: error: unknown type name 'size_t'
      /usr/include/string.h:376:34: error: unknown type name 'size_t'
      /usr/include/string.h:379:39: error: unknown type name 'size_t'
      /usr/include/string.h:385:8: error: unknown type name 'size_t'
      /usr/include/string.h:391:8: error: unknown type name 'size_t'
      /usr/include/string.h:391:46: error: unknown type name 'size_t'
      /usr/include/string.h:421:53: error: unknown type name 'size_t'
      /usr/include/strings.h:23:10: error: 'stddef.h' file not found
      /usr/include/strings.h:34:54: error: unknown type name 'size_t'
      /usr/include/strings.h:38:53: error: unknown type name 'size_t'
      /usr/include/strings.h:42:31: error: unknown type name 'size_t'
      /usr/include/strings.h:120:61: error: unknown type name 'size_t'
      /usr/include/strings.h:134:6: error: unknown type name 'size_t'
      /usr/include/string.h:436:40: error: unknown type name 'size_t'
      /usr/include/string.h:458:34: error: unknown type name 'size_t'
      /usr/include/string.h:461:39: error: unknown type name 'size_t'
      /usr/include/string.h:474:34: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:92:5: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:92:27: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:115:51: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:115:70: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:116:13: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:117:80: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:118:13: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:119:46: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:120:13: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:220:56: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:228:72: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:242:56: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:278:20: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qbytearray.h:50:10: error: 'stdarg.h' file not found
      /usr/include/wchar.h:35:10: error: 'stddef.h' file not found
      /usr/include/wchar.h:38:10: error: 'stdarg.h' file not found
      /usr/include/wchar.h:93:38: error: unknown type name 'size_t'
      /usr/include/wchar.h:102:38: error: unknown type name 'size_t'
      /usr/include/wchar.h:109:63: error: unknown type name 'size_t'
      /usr/include/wchar.h:118:4: error: unknown type name 'size_t'
      /usr/include/wchar.h:126:6: error: unknown type name 'size_t'
      /usr/include/wchar.h:135:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:136:42: error: unknown type name 'size_t'
      /usr/include/wchar.h:150:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:151:5: error: unknown type name 'size_t'
      /usr/include/wchar.h:187:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:191:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:222:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:240:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:240:44: error: unknown type name 'size_t'
      /usr/include/wchar.h:253:59: error: unknown type name 'size_t'
      /usr/include/wchar.h:258:63: error: unknown type name 'size_t'
      /usr/include/wchar.h:263:37: error: unknown type name 'size_t'
      /usr/include/wchar.h:267:63: error: unknown type name 'size_t'
      /usr/include/wchar.h:271:53: error: unknown type name 'size_t'
      /usr/include/wchar.h:277:38: error: unknown type name 'size_t'
      /usr/include/wchar.h:296:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:297:38: error: unknown type name 'size_t'
      /usr/include/wchar.h:301:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:305:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:305:53: error: unknown type name 'size_t'
      /usr/include/wchar.h:307:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:307:51: error: unknown type name 'size_t'
      /usr/include/wchar.h:337:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:338:36: error: unknown type name 'size_t'
      /usr/include/wchar.h:343:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:344:39: error: unknown type name 'size_t'
      /usr/include/wchar.h:351:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:352:37: error: unknown type name 'size_t'
      /usr/include/wchar.h:353:6: error: unknown type name 'size_t'
      /usr/include/wchar.h:357:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:359:6: error: unknown type name 'size_t'
      /usr/include/wchar.h:359:20: error: unknown type name 'size_t'
      /usr/include/wchar.h:371:42: error: unknown type name 'size_t'
      /usr/include/wchar.h:557:38: error: unknown type name 'size_t'
      /usr/include/wchar.h:567:53: error: unknown type name 'size_t'
      /usr/include/wchar.h:590:47: error: unknown type name 'size_t'
      /usr/include/wchar.h:600:9: error: unknown type name '__gnuc_va_list'
      /usr/include/wchar.h:607:8: error: unknown type name '__gnuc_va_list'
      /usr/include/wchar.h:611:48: error: unknown type name 'size_t'
      /usr/include/wchar.h:613:9: error: unknown type name '__gnuc_va_list'
      /usr/include/wchar.h:673:8: error: unknown type name '__gnuc_va_list'
      /usr/include/wchar.h:680:7: error: unknown type name '__gnuc_va_list'
      /usr/include/wchar.h:685:8: error: unknown type name '__gnuc_va_list'
      /usr/include/wchar.h:833:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:833:50: error: unknown type name 'size_t'
      /usr/include/wchar.h:840:8: error: unknown type name 'size_t'
      /usr/include/wchar.h:840:52: error: unknown type name 'size_t'
      /usr/include/locale.h:28:10: error: 'stddef.h' file not found
      /usr/include/sched.h:29:10: error: 'stddef.h' file not found
      /usr/include/x86_64-linux-gnu/bits/cpu-set.h:117:30: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/bits/cpu-set.h:119:37: error: unknown type name 'size_t'
      /usr/include/sched.h:121:46: error: unknown type name 'size_t'
      /usr/include/sched.h:125:46: error: unknown type name 'size_t'
      /usr/include/time.h:29:10: error: 'stddef.h' file not found
      /usr/include/time.h:88:8: error: unknown type name 'size_t'
      /usr/include/time.h:88:47: error: unknown type name 'size_t'
      /usr/include/time.h:104:8: error: unknown type name 'size_t'
      /usr/include/time.h:104:49: error: unknown type name 'size_t'
      /usr/include/pthread.h:307:11: error: unknown type name 'size_t'
      /usr/include/pthread.h:312:11: error: unknown type name 'size_t'
      /usr/include/pthread.h:370:19: error: unknown type name 'size_t'
      /usr/include/pthread.h:377:11: error: unknown type name 'size_t'
      /usr/include/pthread.h:384:7: error: unknown type name 'size_t'
      /usr/include/pthread.h:391:7: error: unknown type name 'size_t'
      /usr/include/pthread.h:398:6: error: unknown type name 'size_t'
      /usr/include/pthread.h:405:6: error: unknown type name 'size_t'
      /usr/include/pthread.h:448:11: error: unknown type name 'size_t'
      /usr/include/pthread.h:475:52: error: unknown type name 'size_t'
      /usr/include/pthread.h:480:52: error: unknown type name 'size_t'
      /usr/include/stdio.h:33:10: error: 'stddef.h' file not found
      /usr/include/stdio.h:36:10: error: 'stdarg.h' file not found
      /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h:95:3: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h:98:67: error: use of undeclared identifier 'size_t'
      /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:28:43: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: error: unknown type name 'size_t'
      /usr/include/stdio.h:52:9: error: unknown type name '__gnuc_va_list'
      /usr/include/stdio.h:292:35: error: unknown type name 'size_t'
      /usr/include/stdio.h:298:47: error: unknown type name 'size_t'
      /usr/include/stdio.h:309:20: error: unknown type name 'size_t'
      /usr/include/stdio.h:315:10: error: unknown type name 'size_t'
      /usr/include/stdio.h:342:8: error: unknown type name '__gnuc_va_list'
      /usr/include/stdio.h:347:54: error: unknown type name '__gnuc_va_list'
      /usr/include/stdio.h:350:8: error: unknown type name '__gnuc_va_list'
      /usr/include/stdio.h:354:44: error: unknown type name 'size_t'
      /usr/include/stdio.h:358:45: error: unknown type name 'size_t'
      /usr/include/stdio.h:359:42: error: unknown type name '__gnuc_va_list'
      /usr/include/stdio.h:367:9: error: unknown type name '__gnuc_va_list'
      /usr/include/stdio.h:380:8: error: unknown type name '__gnuc_va_list'
      /usr/include/stdio.h:433:7: error: unknown type name '__gnuc_va_list'
      /usr/include/stdio.h:440:53: error: unknown type name '__gnuc_va_list'
      /usr/include/stdio.h:445:40: error: unknown type name '__gnuc_va_list'
      /usr/include/stdio.h:453:37: error: unknown type name '__gnuc_va_list'
      /usr/include/stdio.h:457:5: error: unknown type name '__gnuc_va_list'
      /usr/include/stdio.h:462:8: error: unknown type name '__gnuc_va_list'
      /usr/include/stdio.h:604:30: error: unknown type name 'size_t'
      /usr/include/stdio.h:607:28: error: unknown type name 'size_t'
      /usr/include/stdio.h:617:27: error: unknown type name 'size_t'
      /usr/include/stdio.h:646:8: error: unknown type name 'size_t'
      /usr/include/stdio.h:646:46: error: unknown type name 'size_t'
      /usr/include/stdio.h:647:8: error: unknown type name 'size_t'
      /usr/include/stdio.h:652:8: error: unknown type name 'size_t'
      /usr/include/stdio.h:652:53: error: unknown type name 'size_t'
      /usr/include/stdio.h:653:9: error: unknown type name 'size_t'
      /usr/include/stdio.h:673:8: error: unknown type name 'size_t'
      /usr/include/stdio.h:673:55: error: unknown type name 'size_t'
      /usr/include/stdio.h:674:10: error: unknown type name 'size_t'
      /usr/include/stdio.h:675:8: error: unknown type name 'size_t'
      /usr/include/stdio.h:675:62: error: unknown type name 'size_t'
      /usr/include/stdio.h:676:11: error: unknown type name 'size_t'
      /usr/include/stdio.h:831:8: error: unknown type name '__gnuc_va_list'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qbytearray.h:105:41: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qbytearray.h:106:40: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qstringview.h:74:26: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qstringview.h:141:30: error: unknown type name 'size_t'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:68:10: error: 'stdarg.h' file not found
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:95:38: warning: constexpr constructor that does not initialize all members is a C++20 extension [-Wc++20-extensions]
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:196:9: note: member not initialized by constructor
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qhashfunctions.h:70:66: error: unknown type name 'size_t'
      /usr/include/limits.h:124:16: error: 'limits.h' file not found
      /usr/include/x86_64-linux-gnu/qt5/QtGui/qcolor.h:208:71: error: use of undeclared identifier 'USHRT_MAX'
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:229:14: error: functions that differ only in their return type cannot be overloaded
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:1065:28: note: in instantiation of template class 'QVector<unsigned int>' requested here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:144:10: note: previous declaration is here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:230:21: error: functions that differ only in their return type cannot be overloaded
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:143:10: note: previous declaration is here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:231:21: error: functions that differ only in their return type cannot be overloaded
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:142:10: note: previous declaration is here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:229:14: error: functions that differ only in their return type cannot be overloaded
      /usr/include/x86_64-linux-gnu/qt5/QtGui/qpolygon.h:56:38: note: in instantiation of template class 'QVector<QPoint>' requested here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:144:10: note: previous declaration is here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:230:21: error: functions that differ only in their return type cannot be overloaded
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:143:10: note: previous declaration is here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:231:21: error: functions that differ only in their return type cannot be overloaded
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:142:10: note: previous declaration is here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:229:14: error: functions that differ only in their return type cannot be overloaded
      /usr/include/x86_64-linux-gnu/qt5/QtGui/qpolygon.h:141:39: note: in instantiation of template class 'QVector<QPointF>' requested here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:144:10: note: previous declaration is here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:230:21: error: functions that differ only in their return type cannot be overloaded
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:143:10: note: previous declaration is here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:231:21: error: functions that differ only in their return type cannot be overloaded
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:142:10: note: previous declaration is here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:229:14: error: functions that differ only in their return type cannot be overloaded
      /usr/include/x86_64-linux-gnu/qt5/QtGui/qbrush.h:410:20: note: in instantiation of template class 'QVector<QPair<double, QColor> >' requested here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:144:10: note: previous declaration is here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:230:21: error: functions that differ only in their return type cannot be overloaded
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:143:10: note: previous declaration is here
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:231:21: error: functions that differ only in their return type cannot be overloaded
      /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:142:10: note: previous declaration is here
      /home/daniel/Temp/size_t_error/main.cpp:7:5: error: unknown type name 'size_t'
      ignoring nonexistent directory "/tmp/QtCreator-IrXSUK/qtc-cmake-vsnbMhyZ/size_t_error_autogen/include"
      ignoring nonexistent directory ""
      #include "..." search starts here:
      #include <...> search starts here:
       /home/daniel/build/qt-creator/Desktop_Qt_5_12_5/Debug/share/qtcreator/cplusplus/wrappedQtHeaders
       /home/daniel/build/qt-creator/Desktop_Qt_5_12_5/Debug/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore
       /tmp/QtCreator-IrXSUK/qtc-cmake-vsnbMhyZ
       /home/daniel/Temp/size_t_error
       /usr/include/x86_64-linux-gnu/qt5
       /usr/include/x86_64-linux-gnu/qt5/QtWidgets
       /usr/include/x86_64-linux-gnu/qt5/QtGui
       /usr/include/x86_64-linux-gnu/qt5/QtCore
       /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++
       /tmp/QtCreator-IrXSUK/clang-uiheader-ZQuIzW
       /usr/include/c++/9
       /usr/include/x86_64-linux-gnu/c++/9
       /usr/include/c++/9/backward
       /usr/local/include
       /usr/include/x86_64-linux-gnu
       /usr/include
      End of search list.
      qtc.clangbackend.timers: UpdateAnnotationsJobRunner needed 815 ms
      qtc.clangbackend.translationunits: Updated {e54db07c-b155-45d2-b21b-5f957275630b} for "main.cpp" RecentlyParsed: {e54db07c-b155-45d2-b21b-5f957275630b} PreviouslyParsed: {e54db07c-b155-45d2-b21b-5f957275630b}
      qtc.clangbackend.jobs: [ main.cpp ] Finishing Job<1,"main.cpp",UpdateAnnotations,PreviouslyParsed>
      qtc.clangbackend.jobs: [ main.cpp ] Running Job<2,"main.cpp",UpdateExtraAnnotations,RecentlyParsed> with TranslationUnit {e54db07c-b155-45d2-b21b-5f957275630b}
      qtc.clangcodemodel.ipc: <==== AnnotationsMessage for "main.cpp" with 1 diagnostics 52 token infos 0 skipped preprocessor ranges
      qtc.clangbackend.timers: UpdateExtraAnnotationsJobRunner needed 1 ms
      qtc.clangbackend.jobs: [ main.cpp ] Finishing Job<2,"main.cpp",UpdateExtraAnnotations,RecentlyParsed>
      qtc.clangcodemodel.ipc: <==== AnnotationsMessage for "main.cpp" with 0 diagnostics 52 token infos 0 skipped preprocessor ranges
      qtc.clangcodemodel.ipc: ====> DocumentVisibilityChangedMessage(, )
      qtc.clangbackend.server: ########## documentVisibilityChanged
      qtc.clangbackend.timers: ClangCodeModelServer::documentVisibilityChanged needed 0 ms

        Attachments

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

          Activity

            People

            Assignee:
            kosjar Nikolai Kosjar
            Reporter:
            daniel.trevitz@belden.com Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes