On 14 April 2014 05:42, chetan <chet...@neominds.in> wrote: > xxx.c is my program file. > So, i'm compile simply like "cc xxx.c ". > I am Gettting errors as below: > xxx.c:(.text+0x19): undefined reference to `EVP_PKEY_CTX_new' > xxx.c:(.text+0x30): undefined reference to `EVP_PKEY_derive_init' > xxx.c:(.text+0x48): undefined reference to `EVP_PKEY_derive_set_peer' > xxx.c:(.text+0x68): undefined reference to `EVP_PKEY_derive' > xxx.c:(.text+0x88): undefined reference to `EVP_PKEY_derive' > collect2: ld returned 1 exit status
You are not linking to libcrypto. I don't know anything about the platform you are compiling for, but typically in gcc you would use something like: gcc -o xxx xxx.c -lcrypto Matt ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org