windows 编译 libcurl 7.65.0

一、libcurl下载地址

https://curl.haxx.se/libcurl/

二、libcurl编译

安装vs2017后,搜索 VS 2017的开发人员命令提示符
解压进入curl-7.65.0\winbuild\ (windows 进入其他 盘符 直接 d: 回车,然后再 cd 进入目录 curl-7.65.0\winbuild)

这里顺便介绍一下vs和vc版本号的对应关系

vs版本 内部版本号 发布日期
VS97 5 1997-02
VS6.0 6 1998-06
VS2002 7 2002-02-13
VS2003 7.1 2003-04-24
VS2005 8 2005-11-07
VS2008 9 2007-11-19
VS2010 10 2010-04-12
VS2012 11 2012-09-12
VS2013 12 2013-10-17
VS2015 14 2015-07-20
VS2017 15 2017-03-07
VS2019 16 2019-04-02
静态库,debug,x86
nmake /f Makefile.vc mode=static VC=15 DEBUG=yes MACHINE=x86

静态库,release,x86
nmake /f Makefile.vc mode=static VC=15 MACHINE=x86

动态库,debug,x64
nmake /f Makefile.vc mode=dll VC=15 DEBUG=yes MACHINE=x64

动态库,release,x64
nmake /f Makefile.vc mode=dll VC=15 MACHINE=x64

在build目录下生成库文件include lib bin

你可能感兴趣的:(c++)