开发者

How do I specify include directories using NMake?

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 err开发者_如何学JAVAor 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?


Pass -I"include dir" as command line option to cl.


While using nmake you can specify the cl.exe include dir with an environment variable CL

set CL=/IC:\Program Files\Microsoft SDKs\Windows\v7.0A\Include


The correct way to do this, is with the INCLUDE environment variable, example:

INCLUDE=C:\Windows Kits\10\Include\10.0.19041.0\um;C:\Windows Kits\10\Include\10.0.19041.0\ucrt

https://learn.microsoft.com/cpp/build/reference/i-additional-include-directories

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜