On Fri, Oct 31, 2014 at 6:57 AM, Amir Reda <amirale...@gmail.com> wrote: > dear all i made a code for sign some data and verify it i am using eclipse > as IDE and ubuntu 13.10 i have linked eclipse with ssl lib and crypto++ > which i use in this code i got an error > > Invoking: Cross G++ Linker > g++ -L/usr/include/openssl -L/usr/include/cryptopp -L/usr/include/crypto++ > -L/usr/include -o "sign" ./src/sign.o -lssl -lcryptopp -lcrypto++ > /usr/bin/ld: ./src/sign.o: undefined reference to symbol > 'RSA_sign@@OPENSSL_1.0.0' > /lib/i386-linux-gnu/libcrypto.so.1.0.0: error adding symbols: DSO missing > from command line > collect2: ld returned 1 exit status Be sure you have the dev package installed for Ubuntu. I think that's 'sudo apt-get install libssl-dev'.(See https://packages.debian.org/search?keywords=libssl-dev).
Add '-lss -lcrypto'. They are the OpenSSL libraries. Add them in the order shown. '-lcryptopp -lcrypto++' are Wei Dai's Crypto++ libraries. Are you sure you need them? ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org