Error compiling from command line
Posted on 1998-11-28
I just purchased Petzold's "Programming Windows 95" and I'm
trying to compile the first program, "Hello, Windows 95!"
I ran two batch files as I was instructed to in the book,
to set DOS environment variables,
VCVARS32.BAT and MSC.BAT
I have call statements in my autoexec.bat file to run these.
When I issue the command
I get the following stuff:
hellowin.c(6) : fatal error C1034: windows.h: no include path set
NMAKE : fatal error U1077: 'c1' : return code '0x2'
I have the correct path under SET PATH in my autoexec.bat file. So, I guess I'm supposed to set the path some other way.
I tried changing #include <windows.h> in hellowin.c to
#include <e:msdev\include\windows.h> and that worked, except now the compiler wants the path to all the header files included in the windows.h file.
So, how and where do I set the path so that the compiler can
find all the windows header files in my \msdev\include directory?