如何使用 NMake 指定包含目录?
我正在尝试使用 nmake 构建 libfcg (http://www.fastcgi.com/),但是我收到以下错误:
..\include\fcgios.h(23) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
我安装了 Widows SDK 并且 Windows.h 文件存在于该目录中:
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include
如何将其指定为包含目录?
I'm trying to use nmake to build the libfcg (http://www.fastcgi.com/), however I'm getting the following error:
..\include\fcgios.h(23) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
I have the Widows SDK installed and the Windows.h file is present in this directory:
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include
How can I specify this as an include directory?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
执行此操作的正确方法是使用
INCLUDE
环境变量,例如:https://learn.microsoft.com/cpp/build/reference/i-additional-include-directories
The correct way to do this, is with the
INCLUDE
environment variable, example:https://learn.microsoft.com/cpp/build/reference/i-additional-include-directories
将 -I"include dir" 作为命令行选项传递给 cl。
Pass -I"include dir" as command line option to cl.
使用
nmake
时,您可以使用环境变量CL
指定cl.exe
包含目录While using
nmake
you can specify thecl.exe
include dir with an environment variableCL