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

spdlog编译不通过 #4

Open
Paynezheng opened this issue Jun 28, 2024 · 1 comment
Open

spdlog编译不通过 #4

Paynezheng opened this issue Jun 28, 2024 · 1 comment

Comments

@Paynezheng
Copy link

编译不通过,我用的3.1.91和spdlog 1.14.1

README这里直接让人git clone spdlog看起来就不大靠谱...怎么说也得指定一下具体版本吧..

Consolidate compiler generated dependencies of target core
[ 0%] Building CXX object core/CMakeFiles/core.dir/src/Client.cpp.o
In file included from /usr/local/include/spdlog/fmt/fmt.h:24,
from /usr/local/include/spdlog/common.h:50,
from /usr/local/include/spdlog/details/log_msg.h:6,
from /usr/local/include/spdlog/sinks/sink.h:6,
from /usr/local/include/spdlog/sinks/ansicolor_sink.h:11,
from /usr/local/include/spdlog/sinks/stdout_color_sinks.h:9,
from /mnt/d/Code/compiled/huaweicloud-sdk-cpp-v3-3.1.91/core/include/huaweicloud/core/http/HttpClient.h:26,
from /mnt/d/Code/compiled/huaweicloud-sdk-cpp-v3-3.1.91/core/include/huaweicloud/core/auth/IamService.h:25,
from /mnt/d/Code/compiled/huaweicloud-sdk-cpp-v3-3.1.91/core/include/huaweicloud/core/auth/Credentials.h:27,
from /mnt/d/Code/compiled/huaweicloud-sdk-cpp-v3-3.1.91/core/include/huaweicloud/core/Client.h:29,
from /mnt/d/Code/compiled/huaweicloud-sdk-cpp-v3-3.1.91/core/src/Client.cpp:20:
/usr/local/include/spdlog/fmt/bundled/core.h: In instantiation of ‘struct fmt::v10::detail::arg_mapper<fmt::v10::basic_format_context<fmt::v10::appender, char> >’:
/usr/local/include/spdlog/fmt/bundled/core.h:1500:28: required by substitution of ‘template<class T, class Context> using mapped_type_constant = fmt::v10::detail::type_constant<decltype (fmt::v10::detail::arg_mapper().map(declval<const T&>())), typename Context::char_type> [with T = std::__cxx11::basic_string; Context = fmt::v10::basic_format_context<fmt::v10::appender, char>]’
/usr/local/include/spdlog/fmt/bundled/core.h:1572:68: required from ‘constexpr long long unsigned int fmt::v10::detail::encode_types() [with Context = fmt::v10::basic_format_context<fmt::v10::appender, char>; Arg = std::__cxx11::basic_string; Args = {}]’
/usr/local/include/spdlog/fmt/bundled/core.h:1829:58: required from ‘constexpr const long long unsigned int fmt::v10::format_arg_store<fmt::v10::basic_format_context<fmt::v10::appender, char>, std::__cxx11::basic_string<char, std::char_traits, std::allocator > >::desc’
/usr/local/include/spdlog/fmt/bundled/core.h:1942:63: required from ‘constexpr fmt::v10::basic_format_args::basic_format_args(const fmt::v10::format_arg_store<Context, Args ...>&) [with Args = {std::_cxx11::basic_string<char, std::char_traits, std::allocator >}; Context = fmt::v10::basic_format_context<fmt::v10::appender, char>]’
/usr/local/include/spdlog/logger.h:328:28: required from ‘void spdlog::logger::log
(spdlog::source_loc, spdlog::level::level_enum, spdlog::string_view_t, Args&& ...) [with Args = {const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&}; spdlog::string_view_t = fmt::v10::basic_string_view]’
/usr/local/include/spdlog/logger.h:80:13: required from ‘void spdlog::logger::log(spdlog::source_loc, spdlog::level::level_enum, fmt::v10::format_string<T ...>, Args&& ...) [with Args = {const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&}; fmt::v10::format_string<T ...> = fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&>]’
/usr/local/include/spdlog/logger.h:85:12: required from ‘void spdlog::logger::log(spdlog::level::level_enum, fmt::v10::format_string<T ...>, Args&& ...) [with Args = {const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&}; fmt::v10::format_string<T ...> = fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&>]’
/usr/local/include/spdlog/logger.h:140:12: required from ‘void spdlog::logger::info(fmt::v10::format_string<T ...>, Args&& ...) [with Args = {const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&}; fmt::v10::format_string<T ...> = fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&>]’
/usr/local/include/spdlog/spdlog.h:168:31: required from ‘void spdlog::info(fmt::v10::format_string<T ...>, Args&& ...) [with Args = {const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&}; fmt::v10::format_string<T ...> = fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&>]’
/mnt/d/Code/compiled/huaweicloud-sdk-cpp-v3-3.1.91/core/include/huaweicloud/core/auth/Credentials.h:49:21: required from here
/usr/local/include/spdlog/fmt/bundled/core.h:1459:40: error: no matching function for call to ‘fmt::v10::detail::arg_mapper<fmt::v10::basic_format_context<fmt::v10::appender, char> >::map()’
1459 | -> decltype(FMT_DECLTYPE_THIS map(U())) {
.... (其他提示)

@zagzhang
Copy link

zagzhang commented Sep 9, 2024

spdlog-1.8.5 试了一下,可以.

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

2 participants