wabt 安装的时候出现错误

[root@host wabt]# make clang-release
make --no-print-directory -C out/clang/Release/ all
[  1%] Building CXX object CMakeFiles/libgtest.dir/third_party/gtest/googletest/src/gtest-all.cc.o
In file included from /home/ajanuw/wabt/third_party/gtest/googletest/src/gtest-all.cc:39:
In file included from /home/ajanuw/wabt/third_party/gtest/googletest/include/gtest/gtest.h:58:
/home/ajanuw/wabt/third_party/gtest/googletest/include/gtest/internal/gtest-internal.h:894:44: error: 
      no member named 'declval' in namespace 'std'
          class Iterator = decltype(::std::declval<const C&>().begin()),
                                    
/home/ajanuw/wabt/third_party/gtest/googletest/include/gtest/internal/gtest-internal.h:894:52: error: 
      expected expression
          class Iterator = decltype(::std::declval<const C&>().begin()),
                                                   ^
/home/ajanuw/wabt/third_party/gtest/googletest/include/gtest/internal/gtest-internal.h:895:35: error: 
......

clipboard.png

阅读 1.7k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进