CURL 7.43.0无法在MSVC 2013中构建 [英] Curl 7.43.0 won't build in MSVC 2013

查看:61
本文介绍了CURL 7.43.0无法在MSVC 2013中构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2013中从cUrl 7.43.0构建libcurl w / ssl时,编译器报告以下错误:

When building libcurl w/ssl from cUrl 7.43.0 in Visual Studio 2013, the following error is reported by the compiler:

1> ----- -开始构建:项目:libcurl,配置:DLL调试-DLL OpenSSL-DLL LibSSH2 Win32 ------
1> vtls.c
1> C:\Program Files\curlb\ \curl-7.43.0\curl\lib\urldata.h(86):致命错误C1083:无法打开包含文件:'openssl / ssl.h':没有此类文件或目录
1> openssl .c
1> C:\Program Files\curlb\curl-7.43.0\curl\lib\urldata.h(86):致命错误C1083:无法打开包含文件:'openssl /ssl.h':无此类文件或目录
1> darwinssl.c

1>------ Build started: Project: libcurl, Configuration: DLL Debug - DLL OpenSSL - DLL LibSSH2 Win32 ------ 1> vtls.c 1>C:\Program Files\curlb\curl-7.43.0\curl\lib\urldata.h(86): fatal error C1083: Cannot open include file: 'openssl/ssl.h': No such file or directory 1> openssl.c 1>C:\Program Files\curlb\curl-7.43.0\curl\lib\urldata.h(86): fatal error C1083: Cannot open include file: 'openssl/ssl.h': No such file or directory 1> darwinssl.c

在项目的其他包含目录对话框中有一个引用,该引用指定了openssl / inc32目录。就我所知,该目录未包含在内部版本7.43.0中,这可以解释为什么编译器抱怨的原因。

There is a reference in the Project's Additional Include Directories dialog, that specifies a openssl/inc32 directory. That directory is not included in build 7.43.0 so far as I can see which may explain why the compiler is complaining.

关于此错误的信息似乎很少。我想将7.43.0构建为静态库。是否有说明如何在MSVC中构建7.43.0的文档?我可以在哪里找到这些文件以便cURL可以构建。

There seems to be very little information on this error. I would like to build 7.43.0 as a static library. Is there documentation explaining how to build 7.43.0 in MSVC? Where can I find these files so cURL can build.

推荐答案

您可以将配置切换为 DLL调试-DLL Windows SSPI- DLL WinIDN(或 LIB调试-DLL Windows SSPI-DLL WinIDN来建立静态库)。 cURL将使用Windows SSL库构建。

You may just switch configuration to "DLL Debug - DLL Windows SSPI - DLL WinIDN" (or "LIB Debug - DLL Windows SSPI - DLL WinIDN" to build static library). cURL will be built with Windows SSL library.

OpenSSL是另一个库。要使用OpenSSL构建cURL,您应该同时拥有它们。

OpenSSL is a different library. To build cURL with OpenSSL you should have both of them.

这篇关于CURL 7.43.0无法在MSVC 2013中构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆