mackwai / NPPHexEditor

A branch of the hex editor plugin for Notepad++
8 stars 1 forks source link

vs2022 编译报错 #3

Open durongze opened 1 year ago

durongze commented 1 year ago

image E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\stdexcept(25,59): error C2665: 'std::exception::exception': no overloaded function could convert all the argument types 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\vcruntime_exception.h(70,5): message : could be 'std::exception::exception(const std::exception &) noexcept' 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\stdexcept(25,59): message : 'std::exception::exception(const std::exception &) noexcept': cannot convert argument 1 from 'const _Elem ' to 'const std::exception &' 1> with 1> [ 1> _Elem=wchar_t 1> ] 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\stdexcept(25,74): message : Reason: cannot convert from 'const _Elem ' to 'const std::exception' 1> with 1> [ 1> _Elem=wchar_t 1> ] 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\stdexcept(25,74): message : No constructor could take the source type, or constructor overload resolution was ambiguous 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\vcruntime_exception.h(57,5): message : or 'std::exception::exception(const char const ) noexcept' 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\stdexcept(25,59): message : 'std::exception::exception(const char const ) noexcept': cannot convert argument 1 from 'const _Elem ' to 'const char const ' 1> with 1> [ 1> _Elem=wchar_t 1> ] 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\stdexcept(25,74): message : Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or parenthesized function-style cast 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\stdexcept(25,59): message : while trying to match the argument list '(const _Elem )' 1> with 1> [ 1> _Elem=wchar_t 1> ] 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\stdexcept(105,61): error C2665: 'std::exception::exception': no overloaded function could convert all the argument types 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\vcruntime_exception.h(70,5): message : could be 'std::exception::exception(const std::exception &) noexcept' 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\stdexcept(105,61): message : 'std::exception::exception(const std::exception &) noexcept': cannot convert argument 1 from 'const _Elem ' to 'const std::exception &' 1> with 1> [ 1> _Elem=wchar_t 1> ] 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\stdexcept(105,76): message : Reason: cannot convert from 'const _Elem ' to 'const std::exception' 1> with 1> [ 1> _Elem=wchar_t 1> ] 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\stdexcept(105,76): message : No constructor could take the source type, or constructor overload resolution was ambiguous 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\vcruntime_exception.h(57,5): message : or 'std::exception::exception(const char const ) noexcept' 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\stdexcept(105,61): message : 'std::exception::exception(const char const ) noexcept': cannot convert argument 1 from 'const _Elem ' to 'const char const ' 1> with 1> [ 1> _Elem=wchar_t 1> ] 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\stdexcept(105,76): message : Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or parenthesized function-style cast 1>E:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\stdexcept(105,61): message : while trying to match the argument list '(const _Elem )' 1> with 1> [ 1> _Elem=wchar_t 1> ]