E1696 cannot open source file “openssl/buffer.h“

Posted scruffybear

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了E1696 cannot open source file “openssl/buffer.h“相关的知识,希望对你有一定的参考价值。

文章目录

小结

在Visual Studio 2019中需要使用到openssl,返回找不到源文件错误,例如:
"找不到源文件openssl/buffer.h"
对openssl进行了添加,解决了问题。

问题

报错: E1696 cannot open source file "openssl/buffer.h" in crypto.hpp

解决

  1. Install Win32 OpenSSL.

  2. Go Tools > Options… In Options dialog Directories tab. Select category Include files. Add “\\include” here, for example “C:\\OPENSSL-WIN32\\INCLUDE”.

参考

Fatal error C1083: Cannot open include file: ‘openssl/crypto.h’: No such file or directory
How to Installing OpenSSL on Windows 10, 11

以上是关于E1696 cannot open source file “openssl/buffer.h“的主要内容,如果未能解决你的问题,请参考以下文章