<p>I was given a C++ project that was compiled using MS Visual Studio .net 2003 C++ compiler, and a .mak file that was used to compile it.  I am able to build it from the command line using nmake project.mak, but the compiler complains that afxres.h was not found.  I did a little searching around and the afxres.h is in the Visual Studio directory in an includes file.  Where am I supposed to specify to nmake where to look for this header file?</p>

[{'answer_id': 35433, 'author': 'Greg Hewgill', 'author_id': 893, 'author_profile': 'https://Stackoverflow.com/users/893', 'pm_score': 3, 'selected': True, 'text': '<p>There should be an icon in your Start menu under Programs that opens a cmd.exe instance with all the correct MSVS environment variables set up for command line building.</p>\n'}, {'answer_id': 35521, 'author': 'Erin Dees', 'author_id': 3462, 'author_profile': 'https://Stackoverflow.com/users/3462', 'pm_score': 2, 'selected': False, 'text': "<p>Another option is running the appropriate <code>vars</code> batch file from a regular command prompt.  The name and location varies from version to version.  For VS2003, I believe it's</p>\n<p><code>C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Common7\\Tools\\vsvars32.bat</code></p>\n"}]
['https://Stackoverflow.com/questions/35429', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3690/']