How do I specify include directories using NMake?

Justin picture Justin · Jul 28, 2010 · Viewed 10.4k times · Source

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?

Answer

lexa-b picture lexa-b · Sep 23, 2015

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