如何在Visual Studio中使用OpenSSL [英] How to use OpenSSL with Visual Studio
问题描述
我正在尝试将用C
编写的控制台应用程序移植到Visual Studio2010.在Linux/Mac上,该应用程序可以完美运行,包括OpenSSL
支持.
I am trying to port my console application written in C
to Visual Studio 2010. On Linux/Mac, the application runs perfectly, including OpenSSL
support.
任何人都可以在Visual Studio项目中使用/链接OpenSSL
库提供帮助吗?
Can anyone provide help using/linking the OpenSSL
libs in a Visual Studio project?
谢谢!
推荐答案
我知道它很旧了!我本人也遇到了问题,这是解决方案.
I know it's old! I faced the problem myself and here's the solution.
首先,您应该安装(普通普通安装)openssl. (来自此处).
First of all, you should install (normal ordinary installation) openssl. (It's from here).
现在,在创建项目后,我引用:
Now, after you create a project, I quote:
确保在项目属性中设置了以下设置 页面:
Make sure the following settings are setup in the project property pages:
[C/C ++->常规->其他包含目录]值: 您计算机中OpenSSL的包含目录(例如C:\ openssl \ include)
[C/C++ -> General -> Additional Include Directories] value: OpenSSL’s include directory in your machine (e.g C:\openssl\include)
[链接器->常规->其他库目录]值:OpenSSL 您计算机中的lib目录(例如C:\ openssl \ lib)
[Linker -> General -> Additional Library Directories] value: OpenSSL’s lib directory in your machine (e.g C:\openssl\lib)
[链接器->输入 ->其他依赖项]值:libeay32.lib
[Linker -> Input -> Additional Dependencies] value: libeay32.lib
来源.
这篇关于如何在Visual Studio中使用OpenSSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!