1

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?

Gilles 'SO- stop being evil'
  • 104,111
  • 38
  • 209
  • 254
elect
  • 6,765
  • 10
  • 53
  • 119

1 Answers1

1

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

Jumbogram
  • 2,249
  • 1
  • 20
  • 24
  • @Junbogram That line was present in the included header. However the problem is some unknow bad config coming from windows... I created a new Project and imported piece by piece and it worked. I will mark your suggestion as answer because is related to that in anycase, thank :) – elect Jul 11 '12 at 09:04