Openssl, Invalid arguments ' Candidates are: int BN_set_word(bignum_st *, ?) '

不想你离开。 提交于 2019-12-06 13:01:08

问题


I am using OpenSSL for a cuda project.

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

I solved all the dependencies except this annoying error:

Invalid arguments ' Candidates are: int BN_set_word(bignum_st *, ?) '

for this line:

BN_set_word(two, 2);

and the function itself says in the bn.h

int BN_set_word(BIGNUM *a, BN_ULONG w);

Where BN_ULONG is defined as:

#define BN_ULONG    unsigned long

Neither it works if I do something like

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

Because it returns

Invalid arguments ' Candidates are: int BN_set_word(bignum_st *, ?) '

or

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

that gives

Type 'BN_ULONG' could not be resolved

What is the problem?


回答1:


Sounds like you forgot to #include <openssl/bn.h>.



来源:https://stackoverflow.com/questions/11375287/openssl-invalid-arguments-candidates-are-int-bn-set-wordbignum-st

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!