Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 52
Registered: ‎04-22-2012
My Device: Z10
My Carrier: Mobilicity
Accepted Solution

Bounty $100

Im having an issue that I cant seem to work out.

 

Im trying to compile libscrypt and scrypt-jane

 

both are available on git

https://github.com/technion/libscrypt

https://github.com/floodyberry/scrypt-jane

 

I can compile both for my intel desktop just fine. both run their tests and pass successfully.   I have created a blackberry10 build script to build libscrypt for the blackberry 10 simulator.   the script again compiles just fine. However Im getting an undefined reference error that I have been unable to pass for the last 4 days. I am officially stuck.  

 

Im offering $100 to anyone that can effectively solve this #$I(&*$ issue for me. 

 

Here is my compile script for libscrypt

http://pastebin.com/kQeFjZ5q

 

The error im getting is 

 

undefined reference to `libscrypt_scrypt(unsigned char const, unsigned int, unsigned char const, unsigned int, unsigned long long, unsigned int, unsigned int, unsigned char*, unsigned int)'

 

Scrypt-jane has not helped me either. Ultimately I ended up with 

 

undefined reference to `scrypt(unsigned char const*, unsigned int, unsigned char const*, unsigned int, unsigned char, unsigned char, unsigned char, unsigned char*, unsigned int)'

 

 

Developer
Posts: 52
Registered: ‎04-22-2012
My Device: Z10
My Carrier: Mobilicity

Re: Bounty $100

Using a C library in a C++ application.


Had to wrap the methods in the libscrypt.h header in an extern. 

 

#ifdef __cplusplus
extern "C"{
#endif

int libscry...

#ifdef __cplusplus
}
#endif

 

that did it.