Boost::asio::ssl OpenSSL not compiling

旧城冷巷雨未停 提交于 2019-12-10 14:55:34

问题


I'm using boost::asio::ssl. I have installed openssl via sudo apt-get install openssl. In my makefile I link openssl via -lssl.

When compiling I am getting the error: fatal error: openssl/conf.h: No such file or directory

Can anyone tell me what I'm missing or if I'm including the library incorrectly?


回答1:


You may not have the necessary development files. Try installing the libssl-dev package with

  sudo apt-get install libssl-dev

this may solve your problem



来源:https://stackoverflow.com/questions/12021525/boostasiossl-openssl-not-compiling

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