MengRao / fmtlog

fmtlog is a performant fmtlib-style logging library with latency in nanoseconds.
MIT License
807 stars 124 forks source link

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

Open zhuzhzh opened 5 months ago

zhuzhzh commented 5 months ago
% 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 commented 5 months ago

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