且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

要使用静态库构建程序,libcurl.lib

更新时间:2022-04-12 05:11:16

我终于弄明白了.我必须使用:

I figure it out finally. I have to use:

  • "nmake RTLIBCFG=static/f Makefile.vc mode=static VC=14ENABLE_IPV6=no ENABLE_IDN=no GEN_PDB=no DEBUG=no MACHINE=x64"第一步

  • "nmake RTLIBCFG=static /f Makefile.vc mode=static VC=14 ENABLE_IPV6=no ENABLE_IDN=no GEN_PDB=no DEBUG=no MACHINE=x64" in the first step

像 Hans 一样使用cl.exe"对每个步骤使用/MT 选项进行编译帕桑特评论.

compile with /MT option for every steps using "cl.exe" like Hans Passant commented.

希望这可以帮助遇到相同问题的人.顺便说一句,我找到了一个具有类似解决方案的网站,如下所示,http://www.chipkin.com/building-libcurl-on-windows-with-mt-and-mtd/.

Hopefully, this can help out people suffering in the same issue. Bby the way, I found a the website with similar solution as below, http://www.chipkin.com/building-libcurl-on-windows-with-mt-and-mtd/.