一 下载curl (可以官网下载,解压,推荐其他)
方法1:git clone https://github.com/curl/curl.git ( 接下来用的这个)
方法2:vcpkg
方法3:visual studio 的 NuGet
二 从源文件编译需要的动态或静态库 ( 根据
接下来是根据 >curl-master
>winbuild
README.md
README.md中的教程为VS编译库
(若需要支持zlib, OpenSSL .. 需要下载添加在对应目录,我没管这里)
1.打开**'Developer Command Prompt for VS [version]'** (可以搜索打开,可以在VS中>工具>命令行>开发者命令提示
1.2 运行 vcvarsall.bat
找到该文件目录复制 ( 我的在 VC>Auxiliary>Build
cd ../../../Build (切换盘 cd /d ../../../Build
./vcvarsall :x64 (若要x86{win32} ./vcvarsall :x86
2. Build in the console
cd ../curl-master/winbuild
{nmake /f Makefile.vc mode=<static or dll> <options>}
nmake /f Makefile.vc mode=dll (我用的动态库