本文介绍了Openssl,Invalid arguments'Candidates are:int BN_set_word(bignum_st *,?)'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用OpenSSL进行cuda项目。

I am using OpenSSL for a cuda project.

我刚刚将所有项目从win导入到linux(Eclipse)

I just imported all the project from win to linux (Eclipse)

我解决了所有的依赖,除了这个令人讨厌的错误:

I solved all the dependencies except this annoying error:

BN_set_word(two, 2);

且函数本身在bn.h

and the function itself says in the bn.h

int BN_set_word(BIGNUM *a, BN_ULONG w);

其中BN_ULONG定义为:

Where BN_ULONG is defined as:

#define BN_ULONG    unsigned long

like

unsigned long q = 2;
BN_set_word(two, q);

因为它返回


$ b b

or

BN_ULONG q = 2;
BN_set_word(two, q);

有什么问题?

推荐答案

听起来您忘了 #include< openssl / bn.h>

这篇关于Openssl,Invalid arguments'Candidates are:int BN_set_word(bignum_st *,?)'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 20:03