qq_38610908 2021-09-24 20:33 采纳率: 50%
浏览 319
已结题

安装fmt库时,make时报错

/code/fmt/build$ make
[  1%] Building CXX object CMakeFiles/fmt.dir/src/format.cc.o
In file included from /home/weimeng/code/fmt/include/fmt/format-inl.h:29:0,
                 from /home/weimeng/code/fmt/src/format.cc:8:
/home/weimeng/code/fmt/include/fmt/format.h: In instantiation of ‘constexpr Char fmt::v8::detail::sign(Sign) [with Char = char; Sign = unsigned char]’:
/home/weimeng/code/fmt/include/fmt/format.h:1674:41:   required from ‘fmt::v8::detail::write_nonfinite(OutputIt, bool, fmt::v8::basic_format_specs<Char>, const fmt::v8::detail::float_specs&)::<lambda(fmt::v8::detail::reserve_iterator<OutputIt>)> [with Char = char; OutputIt = fmt::v8::appender; fmt::v8::detail::reserve_iterator<OutputIt> = fmt::v8::appender]’
/home/weimeng/code/fmt/include/fmt/format.h:1675:27:   required from ‘struct fmt::v8::detail::write_nonfinite(OutputIt, bool, fmt::v8::basic_format_specs<Char>, const fmt::v8::detail::float_specs&) [with Char = char; OutputIt = fmt::v8::appender]::<lambda(fmt::v8::detail::reserve_iterator<fmt::v8::appender>)>’
/home/weimeng/code/fmt/include/fmt/format.h:1673:22:   required from ‘OutputIt fmt::v8::detail::write_nonfinite(OutputIt, bool, fmt::v8::basic_format_specs<Char>, const fmt::v8::detail::float_specs&) [with Char = char; OutputIt = fmt::v8::appender]’
/home/weimeng/code/fmt/include/fmt/format.h:2027:27:   required from ‘OutputIt fmt::v8::detail::write(OutputIt, T) [with Char = char; OutputIt = fmt::v8::appender; T = float; typename std::enable_if<fmt::v8::detail::is_fast_float<T>::value, int>::type <anonymous> = 0]’
/home/weimeng/code/fmt/include/fmt/format.h:2161:23:   required from ‘fmt::v8::detail::default_arg_formatter<Char>::iterator fmt::v8::detail::default_arg_formatter<Char>::operator()(T) [with T = float; Char = char; fmt::v8::detail::default_arg_formatter<Char>::iterator = fmt::v8::appender]’
/home/weimeng/code/fmt/include/fmt/core.h:1538:15:   required from ‘decltype (vis(0)) fmt::v8::visit_format_arg(Visitor&&, const fmt::v8::basic_format_arg<Context>&) [with Visitor = fmt::v8::detail::default_arg_formatter<char>; Context = fmt::v8::basic_format_context<fmt::v8::appender, char>; decltype (vis(0)) = fmt::v8::appender]’
/home/weimeng/code/fmt/include/fmt/format.h:2887:21:   required fromvoid fmt::v8::detail::vformat_to(fmt::v8::detail::buffer<T>&, fmt::v8::basic_string_view<Char>, fmt::v8::basic_format_args<fmt::v8::basic_format_context<typename std::conditional<std::is_same<typename fmt::v8::type_identity<T>::type, char>::value, fmt::v8::appender, std::back_insert_iterator<fmt::v8::detail::buffer<typename fmt::v8::type_identity<T>::type> > >::type, typename fmt::v8::type_identity<T>::type> >, fmt::v8::detail::locale_ref) [with Char = char; typename fmt::v8::type_identity<T>::type = char; typename std::conditional<std::is_same<typename fmt::v8::type_identity<T>::type, char>::value, fmt::v8::appender, std::back_insert_iterator<fmt::v8::detail::buffer<typename fmt::v8::type_identity<T>::type> > >::type = fmt::v8::appender]’
/home/weimeng/code/fmt/include/fmt/format-inl.h:2594:39:   required from here
/home/weimeng/code/fmt/include/fmt/format.h:913:3: error: static assertion failed: 
   static_assert(std::is_same<Sign, sign_t>::value, "");
   ^
/home/weimeng/code/fmt/include/fmt/format.h:1309:20: error: ‘OutputIt fmt::v8::detail::write_padded(OutputIt, const fmt::v8::basic_format_specs<Char>&, size_t, size_t, F&&) [with fmt::v8::align::type align = (fmt::v8::align::type)1u; OutputIt = fmt::v8::appender; Char = char; F = fmt::v8::detail::write_bytes(OutputIt, fmt::v8::string_view, const fmt::v8::basic_format_specs<Char>&) [with fmt::v8::align::type align = (fmt::v8::align::type)1u; Char = char; OutputIt = fmt::v8::appender; fmt::v8::string_view = fmt::v8::basic_string_view<char>]::<lambda(fmt::v8::detail::reserve_iterator<fmt::v8::appender>)>&; size_t = long unsigned int]’, declared using local type ‘fmt::v8::detail::write_bytes(OutputIt, fmt::v8::string_view, const fmt::v8::basic_format_specs<Char>&) [with fmt::v8::align::type align = (fmt::v8::align::type)1u; Char = char; OutputIt = fmt::v8::appender; fmt::v8::string_view = fmt::v8::basic_string_view<char>]::<lambda(fmt::v8::detail::reserve_iterator<fmt::v8::appender>)>’, is used but never defined [-fpermissive]
 FMT_CONSTEXPR auto write_padded(OutputIt out,
                    ^
/home/weimeng/code/fmt/include/fmt/format.h:1309:20: error: ‘OutputIt fmt::v8::detail::write_padded(OutputIt, const fmt::v8::basic_format_specs<Char>&, size_t, size_t, F&&) [with fmt::v8::align::type align = (fmt::v8::align::type)1u; OutputIt = fmt::v8::appender; Char = char; F = fmt::v8::detail::write_nonfinite(OutputIt, bool, fmt::v8::basic_format_specs<Char>, const fmt::v8::detail::float_specs&) [with Char = char; OutputIt = fmt::v8::appender]::<lambda(fmt::v8::detail::reserve_iterator<fmt::v8::appender>)>&; size_t = long unsigned int]’, declared using local type ‘fmt::v8::detail::write_nonfinite(OutputIt, bool, fmt::v8::basic_format_specs<Char>, const fmt::v8::detail::float_specs&) [with Char = char; OutputIt = fmt::v8::appender]::<lambda(fmt::v8::detail::reserve_iterator<fmt::v8::appender>)>’, is used but never defined [-fpermissive]
CMakeFiles/fmt.dir/build.make:62: recipe for target 'CMakeFiles/fmt.dir/src/format.cc.o' failed
make[2]: *** [CMakeFiles/fmt.dir/src/format.cc.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/fmt.dir/all' failed
make[1]: *** [CMakeFiles/fmt.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2


```c++


```

  • 写回答

2条回答 默认 最新

查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 10月3日
  • 已采纳回答 9月25日
  • 赞助了问题酬金 9月24日
  • 创建了问题 9月24日

悬赏问题

  • ¥30 YOLO检测微调结果p为1
  • ¥20 求快手直播间榜单匿名采集ID用户名简单能学会的
  • ¥15 DS18B20内部ADC模数转换器
  • ¥15 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题