尝试包含 curl 库,从 nmake 获取以下错误:windows.h 找不到文件

trying to include curl library, Get the following error from nmake: windows.h file not found

我的系统信息:Windows Server 2008 R2 Standard,64 位


我正在尝试将 Curl(http://curl.haxx.se/) 库与我的 C++ 代码 (Visual Studio MFC) 结合使用。我正在尝试使用 nmake (Visual Studio 10) 从 curl 源构建 libcurl.dll。我需要 运行 来自 Visual Studio 命令提示符的以下命令:

nmake /f Makefile.vc mode=dll

我收到以下错误:Error

感谢mikedu95,解决了这个问题

按照 curl.haxx.se/docs/install.html 的说明进行操作("MSVC IDE" 在我的例子中)

然后关注:Getting LibCurl to work with Visual Studio 2013

这将设置您需要的一切