Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is what caused the error? #17

Open
BaiFeng666 opened this issue Nov 5, 2024 · 0 comments
Open

This is what caused the error? #17

BaiFeng666 opened this issue Nov 5, 2024 · 0 comments

Comments

@BaiFeng666
Copy link

BaiFeng666 commented Nov 5, 2024

I tried it to integrate the project into my program

I looked at all the issues and didn't find anyone in the same situation as me

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xtr1common(88,8): error C2953: “std::remove_const”: 类模板已经定义
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xtr1common(88,8):
1>    参见“std::remove_const”的声明
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xtr1common(93,8): error C2953: “std::remove_const”: 类模板已经定义
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xtr1common(93,8):
1>    参见“std::remove_const”的声明
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xtr1common(98,7): error C2386: “remove_const_t”: 当前范围内已存在具有该名称的符号
1>(编译源文件“src/main.cpp”)
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xtr1common(211,8): error C2953: “std::remove_reference”: 类模板已经定义
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xtr1common(211,8):
1>    参见“std::remove_reference”的声明
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xtr1common(217,8): error C2953: “std::remove_reference”: 类模板已经定义
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xtr1common(217,8):
1>    参见“std::remove_reference”的声明
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xtr1common(223,8): error C2953: “std::remove_reference”: 类模板已经定义
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xtr1common(223,8):
1>    参见“std::remove_reference”的声明
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xtr1common(229,7): error C2386: “remove_reference_t”: 当前范围内已存在具有该名称的符号
1>(编译源文件“src/main.cpp”)
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\type_traits(1684,25): error C2059: 语法错误:“||”
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\type_traits(1684,25):
1>    模板实例化上下文(最早的实例化上下文)为
1>        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\type_traits(1682,8):
1>        在编译类模板部分专用化“std::_Invoker1<_Callable,_Ty1,_Removed_cvref,true,false>”时
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\type_traits(1686,11): error C2993: “unknown-type”: 不是非类型模板参数“_Test”的有效类型
1>(编译源文件“src/main.cpp”)
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\type_traits(1683,7): error C3770: “unknown-type”: 不是有效基类
1>(编译源文件“src/main.cpp”)
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\type_traits(1693,15): error C2059: 语法错误:“||”
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\type_traits(1693,15):
1>    模板实例化上下文(最早的实例化上下文)为
1>        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\type_traits(1690,8):
1>        在编译类模板部分专用化“std::_Invoker1<_Callable,_Ty1,_Removed_cvref,false,true>”时
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\type_traits(1695,11): error C2993: “unknown-type”: 不是非类型模板参数“_Test”的有效类型
1>(编译源文件“src/main.cpp”)
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\type_traits(1691,7): error C3770: “unknown-type”: 不是有效基类
1>(编译源文件“src/main.cpp”)
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\type_traits(2017,62): error C3203: "is_same": 未指定的 类 模板 不能用作 模板 参数 "_Trait" 的 模板 参数,应为真实类型
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\type_traits(2017,62):
1>    模板实例化上下文(最早的实例化上下文)为
1>        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\type_traits(2006,7):
1>        在编译类模板“std::reference_wrapper”时
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xmemory(2526,42): error C2062: 意外的类型“unknown-type”
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xmemory(2526,42):
1>    模板实例化上下文(最早的实例化上下文)为
1>        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xmemory(2521,7):
1>        在编译类模板“std::_Ebco_base”时
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xmemory(2545,42): error C2062: 意外的类型“unknown-type”
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xmemory(2545,42):
1>    模板实例化上下文(最早的实例化上下文)为
1>        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xmemory(2540,7):
1>        在编译类模板部分专用化“std::_Ebco_base<_Ty,false>”时
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3337,35): error C2976: “std::_Get_deleter_pointer_type'”: 模板 参数太少
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3321,8):
1>    参见“std::_Get_deleter_pointer_type”的声明
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3337,35):
1>    模板实例化上下文(最早的实例化上下文)为
1>        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3335,7):
1>        在编译类模板“std::unique_ptr”时
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3366,55): error C3203: "is_constructible": 未指定的 类 模板 不能用作 模板 参数 "_Traits" 的 模板 参数,应为真实类型
1>(编译源文件“src/main.cpp”)
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3464,35): error C2976: “std::_Get_deleter_pointer_type'”: 模板 参数太少
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3321,8):
1>    参见“std::_Get_deleter_pointer_type”的声明
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3464,35):
1>    模板实例化上下文(最早的实例化上下文)为
1>        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3462,7):
1>        在编译类模板部分专用化“std::unique_ptr<_Ty[],_Dx>”时
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3492,55): error C3203: "is_constructible": 未指定的 类 模板 不能用作 模板 参数 "_Traits" 的 模板 参数,应为真实类型
1>(编译源文件“src/main.cpp”)
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(110,61): error C2062: 意外的类型“unknown-type”
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(110,61):
1>    模板实例化上下文(最早的实例化上下文)为
1>        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(110,8):
1>        在编译类模板部分专用化“std::_Tuple_perfect_val<_Myself,_This2,>”时
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(110,46): error C3770: “unknown-type”: 不是有效基类
1>(编译源文件“src/main.cpp”)
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(114,44): error C3203: "is_same": 未指定的 类 模板 不能用作 模板 参数 "_Trait" 的 模板 参数,应为真实类型
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(114,44):
1>    模板实例化上下文(最早的实例化上下文)为
1>        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(113,8):
1>        在编译类模板部分专用化“std::_Tuple_perfect_val<std::tuple<_Ty0,_Ty1>,_Uty0,_Uty1>”时
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(119,44): error C3203: "is_same": 未指定的 类 模板 不能用作 模板 参数 "_Trait" 的 模板 参数,应为真实类型
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(119,44):
1>    模板实例化上下文(最早的实例化上下文)为
1>        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(118,8):
1>        在编译类模板部分专用化“std::_Tuple_perfect_val<std::tuple<_Ty0,_Ty1,_Ty2>,_Uty0,_Uty1,_Uty2>”时
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(1031,91): error C3546: “...”: 没有可用于扩展的参数包
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(1031,91):
1>    模板实例化上下文(最早的实例化上下文)为
1>        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(1030,8):
1>        在编译类模板部分专用化“std::_Tuple_cat2<_Ty,std::integer_sequence<size_t,_Kx...>,std::integer_sequence<size_t,_Ix...>,_Ix_next,>”时
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(1048,5): error C2993: “unknown-type”: 不是非类型模板参数“_Size”的有效类型
1>(编译源文件“src/main.cpp”)
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(1048,64): error C3546: “...”: 没有可用于扩展的参数包
1>(编译源文件“src/main.cpp”)
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(1047,7): error C2955: “std::_Tuple_cat2”: 使用 类 模板 需要 模板 参数列表
1>(编译源文件“src/main.cpp”)
1>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\tuple(1027,8):
1>    参见“std::_Tuple_cat2”的声明
1>已完成生成项目“etw_hook.vcxproj”的操作 - 失败。
========== 生成: 0 成功,1 失败,0 最新,0 已跳过 ==========
========== 生成 于 21:26 完成,耗时 01.059 秒 ==========
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant