gcc, Ubuntu.
Have done:
sudo apt-get install libssl-dev
Build with -lssl, but during linkage get error:
undefined reference to `DES_set_odd_parity’
?
EDITED:
g++ linear_des.cpp -lssl
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
DES_set_odd_parityis part oflibcryptoso you should try linking that as well. Something on these lines:g++ linear_des.cpp -lssl -lcryptoHope this helps!
PS: It might be a good idea to make use of
pkg-configtool & compile something on these lines:g++ linear_des.cpp $(pkg-config --cflags --libs openssl)