Compiling C program with OpenSSL

為{幸葍}努か 提交于 2019-12-25 12:48:04

问题


I am new to Openssl. I have openssl 1.1.0e and libssl-dev installed on ubuntu 16.04. I am trying to run the example on this page in openssl documentation https://www.openssl.org/docs/man1.1.0/crypto/EVP_DigestInit.html.

I use the command

gcc example1.c -lssl -lcrypto 

to compile the program. But I get the following error Undefined Reference error

I have seen related questions on the forum but cannot find the solution. If anyone can help with pointing out the solution, it will be a great help.

来源:https://stackoverflow.com/questions/43644785/compiling-c-program-with-openssl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!