如何在 Windows 上安装 curl 以与 C 一起使用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7246156/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 17:57:50  来源:igfitidea点击:

How can I install curl on Windows to use with C

cwindowscurlmingw

提问by Chris Smith

I need to install curl on Windows to use it in a C application, I am using MinGW. Detailed instructions would be appreciated.

我需要在 Windows 上安装 curl 才能在 C 应用程序中使用它,我使用的是 MinGW。详细说明将不胜感激。

回答by DrYap

Go to the library download pageand under "Win32 - Generic" download the libcurl option. This zip file includes headers and libraries in the .a format. Extract the files and use them in your project.

转到库下载页面,然后在“Win32 - Generic”下下载 libcurl 选项。此 zip 文件包含 .a 格式的标头和库。提取文件并在您的项目中使用它们。