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

来源:互联网 发布:多核处理器编程 编辑:程序博客网 时间:2024/05/18 02:00

报错如下

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 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