[cs631apue] Question About the RAND_bytes

Bradford Smith bsmith8 at stevens.edu
Sat Dec 3 18:49:23 EST 2016


To use the OpenSSL cryptography functions you need to link against
libcrypto (-lcrypto).

Perhaps you forgot this step?

Bradford Smith

On Sat, Dec 3, 2016 at 5:58 PM, bzhang41 <bzhang41 at stevens.edu> wrote:
> Dear all,
>
> Do you know why I cannot compile the program, when I use the RAND_bytes(3)
> to generate the salt ?
>
> I include the header #include <openssl/rand.h>,
> but it still says undefined reference to `RAND_bytes`. I didn't find any
> solution on the web.
> Can anyone tell me how to fix it ?
>
>
> Thanks
> Bo
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue


More information about the cs631apue mailing list