c++ - 为 Visual Studio 2017 设置 Curl : NMAKE: fatal error U1073: don't know how to make '..\src\tool_hugehelp.c'

标签 c++ visual-studio curl

我目前正在尝试为 VS2017 构建 curl,在使用 x86 Native Tools 命令提示符进行设置时,我运行命令:

nmake /f Makefile.vc mode=static vc=15 debug=yes

当它到达“复制库”部分时,它给了我错误:

NMAKE: fatal error U1073: don't know how to make '..\src\tool_hugehelp.c'

以及下面的另一个错误:

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe"' : return code '0x2'
Stop.

有谁知道为什么会出现这些错误?或者如何解决?

最佳答案

如果第一个答案没有解决问题(如果它是正确的。) 从 Github 下载 lib curl。 构建 x64 调试的步骤:

  1. 打开 x64 Native Tools 命令提示符 VS 2019
  2. 进入仓库。
  3. 在文件资源管理器中打开 repo 并双击 buildconf.bat 文件。
  4. 在 x64 Native Tools 命令提示符 VS 中 cd 到\buildtools 2019
  5. 键入,设置 RTLIBCFG=static,按回车键。

6.Type, nmake/f Makefile.vc mode=static vc=16 debug=yes

  • 发布
  • 类型,nmake/f Makefile.vc mode=static vc=16 debug=no

关于c++ - 为 Visual Studio 2017 设置 Curl : NMAKE: fatal error U1073: don't know how to make '..\src\tool_hugehelp.c' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55039469/

相关文章:

powershell - 如何在 PowerShell 中将 curl 结果作为变量获取

c++ - 很少的刚体导致子弹物理缓慢

C++ 返回多个项目

c++ - 将 bool 值打包成 char

c# - 更改 App_Code 中的任何文件后 Visual Studio 挂起

sql-server - 如何创建ssis项目

cURL GET 请求返回无输出

php - PHP 中的异步curl 请求

c++ - librdf raptor 处理对象中的整数值

c++ - 只用一个头文件开始一个新项目