请教!!make的时候提示以下错误,关于boost的!!

c 专栏收录该内容
1 篇文章 0 订阅

In file included from /root/MultipartyPSI-implement/cryptoTools/Network/BtAcceptor.h:8,
                 from /root/MultipartyPSI-implement/cryptoTools/Network/BtAcceptor.cpp:1:
/root/MultipartyPSI-implement/cryptoTools/Network/BtSocket.h:75:2: error: invalid use of template-name ‘boost::asio::strand’ without an argument list
  boost::asio::strand mSendStrand,mRecvStrand;
  ^~~~~
/root/MultipartyPSI-implement/cryptoTools/Network/BtSocket.h:75:2: note: class template argument deduction is only available with -std=c++17 or -std=gnu++17
In file included from /usr/local/include/boost/asio.hpp:123,
                 from /root/MultipartyPSI-implement/cryptoTools/Network/BtIOService.h:14,
                 from /root/MultipartyPSI-implement/cryptoTools/Network/BtSocket.h:10,
                 from /root/MultipartyPSI-implement/cryptoTools/Network/BtAcceptor.h:8,
                 from /root/MultipartyPSI-implement/cryptoTools/Network/BtAcceptor.cpp:1:
/usr/local/include/boost/asio/strand.hpp:29:7: note: ‘template<class Executor> class boost::asio::strand’ declared here
 class strand
       ^~~~~~
In file included from /root/MultipartyPSI-implement/cryptoTools/Network/BtAcceptor.h:8,
                 from /root/MultipartyPSI-implement/cryptoTools/Network/BtAcceptor.cpp:1:
/root/MultipartyPSI-implement/cryptoTools/Network/BtSocket.h: In constructor ‘osuCrypto::BtSocket::BtSocket(osuCrypto::BtIOService&)’:
/root/MultipartyPSI-implement/cryptoTools/Network/BtSocket.h:85:9: error: class ‘osuCrypto::BtSocket’ does not have any field named ‘mSendStrand’
         mSendStrand(ios.mIoService),
         ^~~~~~~~~~~
/root/MultipartyPSI-implement/cryptoTools/Network/BtSocket.h:86:9: error: class ‘osuCrypto::BtSocket’ does not have any field named ‘mRecvStrand’
         mRecvStrand(ios.mIoService),
         ^~~~~~~~~~~
make[2]: *** [cryptoTools/CMakeFiles/cryptoTools.dir/build.make:223:cryptoTools/CMakeFiles/cryptoTools.dir/Network/BtAcceptor.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:124:cryptoTools/CMakeFiles/cryptoTools.dir/all] 错误 2
make: *** [Makefile:84:all] 错误 2
 

  • 0
    点赞
  • 1
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值