Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

fatal error: 'type_traits' file not found



  • And another " fatal error: 'type_traits' file not found" error thread. I've searched the forum and found similar topics but all of them had a problem with Android SDK/NDK stuff.

    Not this time, my system:
    Gentoo Linux
    gcc-9.2.0, qt-5.12.5, qtcreator-4.10.84.
    Kits:
    kits.png

    I opened the qt audio example project and Qt-Creator presented me a LOAD of errors including the warning

    fatal error: 'type_traits' file not found
    

    errors_n_warnings.png

    # find /usr/ -name '*type_traits*'
    /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/g++-v9/tr1/type_traits
    /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/g++-v9/experimental/type_traits
    /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/g++-v9/tr2/type_traits
    /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/g++-v9/ext/type_traits.h
    /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/g++-v9/bits/cpp_type_traits.h
    /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/g++-v9/type_traits
    /usr/lib/llvm/8/include/llvm/Support/type_traits.h
    /usr/include/rttr/detail/misc/std_type_traits.h
    ...
    

    analyzer.png
    Any ideas why the heck this errors/warning hunts me since weeks?
    Ps. of course the project compiles without any error...



  • So for now I disabled the ClangCodeModel Plugin. I am done with. I want to be productive an not fiddle about with such things :). Maybe someone stumbles upon the same problem later...


  • Lifetime Qt Champion

    @pauledd

    So you just made it into https://forum.qt.io/topic/100762/qt-creator-clang-code-model-problems-collection :)

    Please mark this topic as SOLVED, thanks!


Log in to reply