I am trying to compile some C code using M.S. cl.exe.
It says it can't find a header file, so I get it.
And after that you will discover a whole list of missing libraries....
C and C++ require sets of headers that describe functions in libraries. While there is not a one to one correlation between headers and libs, there absolutely is a one to one correlation between functions prototyped in headers and functions existing in libraries.
If you download and install the
Windows SDK you will have a full set of both headers and libraries for MSVC++ version 9.0 (2008). This will give you headers in two places... inside the C++ install and inside the SDK install... all you have to do is open a command window compose two path-like strings for the environment...
set INCLUDE=<path to sdk headers>;<path to c++ headers>
set LIB=<path to sdk libs>;<path to c++ libs>
Then, provided you use the same command window, you can run CL and it will know where to find things.
But... if this is plain C code, why not install Pelles C and compile with that?