How to specify include directories with NMake?

I am trying to use nmake to create libfcg ( http://www.fastcgi.com/ ), however I am 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?

+5
source share
2 answers

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

+2
source

When using, nmakeyou can specify an cl.exeinclude directory with an environment variableCL

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

All Articles