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

the built-in test case log_test.cc failed #96

Open
zhuzhzh opened this issue Jul 3, 2024 · 1 comment
Open

the built-in test case log_test.cc failed #96

zhuzhzh opened this issue Jul 3, 2024 · 1 comment

Comments

@zhuzhzh
Copy link

zhuzhzh commented Jul 3, 2024

% g++ log_test.cc -lfmtlog-shared -L../.build/ -o log_test -I/home/public/fmt/include -lfmt -L/home/public/fmt/lib64
In file included from log_test.cc:4:
../fmtlog.h: In static member function ‘static fmt::v10::string_view fmtlogT<__>::unNameFormat(fmt::v10::string_view, uint32_t*, const Args& ...)’:
../fmtlog.h:640:28: error: ‘throw_format_error’ is not a member of ‘fmt::v10::detail’; did you mean ‘fmt::v10::throw_format_error’?
  640 |       if (!c) fmt::detail::throw_format_error("invalid format string");
      |                            ^~~~~~~~~~~~~~~~~~
In file included from /home/public/fmt/include/fmt/format.h:56,
                 from ../fmtlog.h:26,
                 from log_test.cc:4:
/home/public/fmt/include/fmt/base.h:728:41: note: ‘fmt::v10::throw_format_error’ declared here
  728 | FMT_DEPRECATED FMT_NORETURN inline void throw_format_error(
      |                                         ^~~~~~~~~~~~~~~~~~
In file included from log_test.cc:4:
../fmtlog.h:653:34: error: ‘throw_format_error’ is not a member of ‘fmt::v10::detail’; did you mean ‘fmt::v10::throw_format_error’?
  653 |         if (id < 0) fmt::detail::throw_format_error("invalid format string");
      |                                  ^~~~~~~~~~~~~~~~~~
In file included from /home/public/fmt/include/fmt/format.h:56,
                 from ../fmtlog.h:26,
                 from log_test.cc:4:
/home/public/fmt/include/fmt/base.h:728:41: note: ‘fmt::v10::throw_format_error’ declared here
  728 | FMT_DEPRECATED FMT_NORETURN inline void throw_format_error(
      |                                         ^~~~~~~~~~~~~~~~~~
@zhuzhzh
Copy link
Author

zhuzhzh commented Jul 4, 2024

The issue is due to fmt lib v10.2.2.
fmt lib is updated to v11.0.0. Could ftmlog be compatiable with this one? Thx

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