in Uncategorized

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