i try to add KFRlib to my visual-studio and i can’t fix this problem

hello evryone i need to use KFRlib
in processe : when i try this command:

C:kfr-masterbuild>cmake -GNinja -DENABLE_TESTS=ON -DCMAKE_CXX_COMPILER="C:/Program Files/LLVM/bin/clang-cl.exe" -DCMAKE_CXX_FLAGS=-m64 -DCMAKE_BUILD_TYPE=Release ..

source : "https://github.com/kfrlib/kfr/blob/master/README.md#usage"

LLVM and cmake already installed
response

"-- Detecting native cpu...
-- COMPILE_RESULT=FALSE
-- RUN_RESULT=
-- COMPILE_OUT=Change Dir: C:/kfr-master/build/tmpdir/CMakeFiles/CMakeTmp

Run Build Command(s):C:/PROGRA~2/MICROS~1/2019/COMMUN~1/Common7/IDE/COMMON~1/MICROS~1/CMake/Ninja/ninja.exe cmTC_f3d34 && [1/2] Building CXX object CMakeFilescmTC_f3d34.dirdetect_cpu.cpp.obj
FAILED: CMakeFiles/cmTC_f3d34.dir/detect_cpu.cpp.obj
C:PROGRA~1LLVMbinclang-cl.exe  /nologo -TP  -IC:kfr-masterinclude -m64  /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFilescmTC_f3d34.dirdetect_cpu.cpp.obj /FdCMakeFilescmTC_f3d34.dir -c -- C:kfr-mastercmakedetect_cpu.cpp
In file included from C:kfr-mastercmakedetect_cpu.cpp:1:
In file included from C:kfr-masterincludekfr/runtime/cpuid.hpp:32:
In file included from C:kfr-masterincludekfr/runtime/../simd/platform.hpp:28:
In file included from C:kfr-masterincludekfr/runtime/../simd/types.hpp:28:
C:kfr-masterincludekfr/runtime/../simd/../kfr.h(58,11) :  error: 'inline' can only appear on functions
constexpr inline const char version_string[] = KFR_VERSION_STRING
          ^
C:kfr-masterincludekfr/runtime/../simd/../kfr.h(60,11) :  error: 'inline' can only appear on functions
constexpr inline int version_major = KFR_VERSION_MAJOR
          ^
C:kfr-masterincludekfr/runtime/../simd/../kfr.h(61,11) :  error: 'inline' can only appear on functions
constexpr inline int version_minor = KFR_VERSION_MINOR
          ^
C:kfr-masterincludekfr/runtime/../simd/../kfr.h(62,11) :  error: 'inline' can only appear on functions
constexpr inline int version_patch = KFR_VERSION_PATCH
          ^
C:kfr-masterincludekfr/runtime/../simd/../kfr.h(63,11) :  error: 'inline' can only appear on functions
constexpr inline int version       = KFR_VERSION
          ^
C:kfr-masterincludekfr/runtime/../simd/../kfr.h(66,11) :  error: 'inline' can only appear on functions
constexpr inline const char version_full[] = KFR_VERSION_FULL
          ^
In file included from C:kfr-mastercmakedetect_cpu.cpp:1:
In file included from C:kfr-masterincludekfr/runtime/cpuid.hpp:32:
In file included from C:kfr-masterincludekfr/runtime/../simd/platform.hpp:28:
In file included from C:kfr-masterincludekfr/runtime/../simd/types.hpp:31:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/specialconstants.hpp:25:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/../../cometa/numeric.hpp:6:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/../../cometa/../cometa.hpp:8:
In file included from C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includecstdint:9:
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includeyvals_core.h(520,2) :  error: STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
#error STL1000: Unexpected compiler version, expected Clang 10.0.0 or newer.
 ^
In file included from C:kfr-mastercmakedetect_cpu.cpp:1:
In file included from C:kfr-masterincludekfr/runtime/cpuid.hpp:32:
In file included from C:kfr-masterincludekfr/runtime/../simd/platform.hpp:28:
In file included from C:kfr-masterincludekfr/runtime/../simd/types.hpp:31:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/specialconstants.hpp:25:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/../../cometa/numeric.hpp:6:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/../../cometa/../cometa.hpp:12:
In file included from C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includelimits:16:
In file included from C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includexstddef:11:
In file included from C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includecstddef:13:
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includextr1common(192,5) :  error: use of undeclared identifier 'char16_t'
    char16_t, char32_t, short, unsigned short, int, unsigned int, long, unsigned long, long long, unsigned long long>
    ^
In file included from C:kfr-mastercmakedetect_cpu.cpp:1:
In file included from C:kfr-masterincludekfr/runtime/cpuid.hpp:32:
In file included from C:kfr-masterincludekfr/runtime/../simd/platform.hpp:28:
In file included from C:kfr-masterincludekfr/runtime/../simd/types.hpp:31:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/specialconstants.hpp:25:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/../../cometa/numeric.hpp:6:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/../../cometa/../cometa.hpp:12:
In file included from C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includelimits:16:
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includexstddef(283,22) :  error: 'auto' return without trailing return type deduced return types are a C++14 extension
_NODISCARD constexpr auto _Unfancy(_Ptrty _Ptr) noexcept { // converts from a fancy pointer to a plain pointer
                     ^
In file included from C:kfr-mastercmakedetect_cpu.cpp:1:
In file included from C:kfr-masterincludekfr/runtime/cpuid.hpp:32:
In file included from C:kfr-masterincludekfr/runtime/../simd/platform.hpp:28:
In file included from C:kfr-masterincludekfr/runtime/../simd/types.hpp:31:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/specialconstants.hpp:25:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/../../cometa/numeric.hpp:6:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/../../cometa/../cometa.hpp:12:
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includelimits(370,22) :  error: use of undeclared identifier 'char16_t'
class numeric_limits<char16_t> : public _Num_int_base {
                     ^
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includelimits(415,22) :  error: use of undeclared identifier 'char32_t'
class numeric_limits<char32_t> : public _Num_int_base {
                     ^
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includelimits(1023,5) :  error: statement not allowed in constexpr function
    do {
    ^
In file included from C:kfr-mastercmakedetect_cpu.cpp:1:
In file included from C:kfr-masterincludekfr/runtime/cpuid.hpp:32:
In file included from C:kfr-masterincludekfr/runtime/../simd/platform.hpp:28:
In file included from C:kfr-masterincludekfr/runtime/../simd/types.hpp:31:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/specialconstants.hpp:25:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/../../cometa/numeric.hpp:6:
In file included from C:kfr-masterincludekfr/runtime/../simd/impl/../../cometa/../cometa.hpp:13:
In file included from C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includerandom:12:
In file included from C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includealgorithm:11:
In file included from C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includexmemory:14:
In file included from C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includenew:11:
In file included from C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includeexception:12:
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includetype_traits(36,31) :  error: unknown type name '__make_integer_seq'
using make_integer_sequence = __make_integer_seq<integer_sequence, _Ty, _Size>
                              ^
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includetype_traits(36,49) :  error: expected '' after alias declaration
using make_integer_sequence = __make_integer_seq<integer_sequence, _Ty, _Size>
                                                ^
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includetype_traits(42,29) :  error: no template named 'make_integer_sequence' did you mean 'integer_sequence'?
using make_index_sequence = make_integer_sequence<size_t, _Size>
                            ^
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includetype_traits(24,8) :  note: 'integer_sequence' declared here
struct integer_sequence { // sequence of integer parameters
       ^
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includetype_traits(671,54) :  error: '_To' does not refer to a value
struct is_assignable : bool_constant<__is_assignable(_To, _From)> {} // determine whether _From can be assigned to _To
                                                     ^
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includetype_traits(670,17) :  note: declared here
template <class _To, class _From>
                ^
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includetype_traits(671,59) :  error: '_From' does not refer to a value
struct is_assignable : bool_constant<__is_assignable(_To, _From)> {} // determine whether _From can be assigned to _To
                                                          ^
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includetype_traits(670,28) :  note: declared here
template <class _To, class _From>
                           ^
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includetype_traits(671,67) :  error: expected class name
struct is_assignable : bool_constant<__is_assignable(_To, _From)> {} // determine whether _From can be assigned to _To
                                                                  ^
C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.28.29910includetype_traits(674,62) :  error: '_To' does not refer to a value
_INLINE_VAR constexpr bool is_assignable_v = __is_assignable(_To, _From)
                                                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
ninja: build stopped: subcommand failed.


-- RUN_OUT=
-- CPU_ARCH=detect
-- Could NOT find MPFR (missing: MPFR_INCLUDE_DIR MPFR_LIBRARIES)
-- Could NOT find GMP (missing: GMP_INCLUDE_DIR GMP_LIBRARIES)
-- ARCH_TESTS =
-- Testing for
-- Configuring done
-- Generating done
-- Build files have been written to: C:/kfr-master/build"

Source: Windows Questions

LEAVE A COMMENT