您的位置:首页 > 编程语言 > Qt开发

关于在编译比特币或者qtum中遇到的一点小问题

2017-07-12 16:22 549 查看
报错如下

key.cpp: In function ‘bool EnsureLowS(std::vector<unsigned char>&)’:
key.cpp:149:19: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
if (BN_cmp(sig->s, halforder) > 0) {
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:17:
/usr/include/openssl/ec.h:1044:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:151:19: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
BN_sub(sig->s, order, sig->s);
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:17:
/usr/include/openssl/ec.h:1044:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:151:34: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
BN_sub(sig->s, order, sig->s);
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:17:
/usr/include/openssl/ec.h:1044:16: note: forward
4000
declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~


google了很久知道时openssl的问题但就是没有解决方案2333

但其主要是openssl不兼容的问题,我装的1.0.2版本,重新装回1.0.0版本就行了。。。。就是libopenssl1.0.0-dev
编译成功2333
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  C++ 比特币