I need to be able to use nmake through the command line to compile make files. All the documentation that I have consulted has suggested that I use vcvar32.bat in the Bin folder. However when I use it if gives me an "Out of environment space" error.
What is the matter with. How else am I supposed to use nmake.
Im using MSVC++ 6.0 and Windows 98.
Any thanks would be appreciated.
very simple. type
before working with anything else. you have to do that for each type you enter a dos prompt.
the /e:4096 makes your enviroment variables have more storage space. right now you have a whole lotta stuff in there (like i do).
Hey thanks a lot.
The batch file now works fine.
Unfortunately I have to go to ...\VC98\Bin folder every time and run it if i want to make anything.
There has got to be an easier way to use nmake.
good question. the command.exe program is the command shell, and it wipes out any previous enviroment variables, like the path (which tells where often used programs are). i'll reply if i find anything
try putting the line "shell=C:\windows\command.com /e:4096" into config.sys. if config.sys has a message telling you to not edit it, add the line to the file it tells you to edit instead.
actually, that probably won't work. instead, create a shortcut of command.com in the windows directory. take that shortcut, right click, go to properties, then the memory tab, then change the initial enviroment size from auto to 4096. then double click that whenever you want the command prompt.
>>Any thanks would be appreciated.
whoops, you probably figured out that I meant "help".
Thanks alot ygfperson.
Except that does not fix my problem with having to run vcvars32.bat from the prompt everytime I need to use nmake to compile a makefile.
What I think I need is something that will automatically set the eviroment variables then goes to "C:\Program Files\Microsoft Visual Studio\VC98\Bin" and run the batch file. Then brings itself back to "C:\".