I'm trying to build an open-source project, following the instructions
and included makefile for VS7 nmake under Windows. This is a very new
installation of VS7, but I used the company's install system (seems to
work for others) and a test IDE project went ok. I didn't try any test
nmake programs though.
Anyway, the make fails right away, unable to find stdio.h. I changed
the path to add the include directory:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include
That didn't help.
Here's the full output:
D:\mico>nmake /f Makefile.win32
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
A subdirectory or file .\win32-bin already exists.
A subdirectory or file .\win32-bin\lib already exists.
cl.exe /DNDEBUG /Ox admin\cntfiles.cpp /Foadmin\cntfiles.obj/link /OUT
:admin\cntfiles.exe
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for
80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
cntfiles.cpp
admin\cntfiles.cpp(1) : fatal error C1083: Cannot open include file:
'stdio.h':
No such file or directory
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
Any thoughts on the matter would be appreciated. If someone has a small
test program with associated makefile for nmake, I'd give it a whirl.
Brian
Default User - 24 Sep 2007 22:23 GMT
> I'm trying to build an open-source project, following the instructions
> and included makefile for VS7 nmake under Windows. This is a very new
[quoted text clipped - 3 lines]
>
> Anyway, the make fails right away, unable to find stdio.h.
Answering my own question. There's a batch file called vcvars32.bat to
run after the install of VS7. That took care of the problem.
Brian

Signature
If televison's a babysitter, the Internet is a drunk librarian who
won't shut up.
-- Dorothy Gambrell (http://catandgirl.com)