in reply to cl.exe & _ansi.h

You need to this from the "Visual Studio .NET Command Prompt" which is on the Visual Studio .NET tools sub-menu rather than just from a plain cmd.exe prompt, this is essentially a batch file that sets the correct environment for the command line tools to work properly and find everything they need.

/J\

Replies are listed 'Best First'.
Re^2: cl.exe & _ansi.h
by tachyon (Chancellor) on Aug 25, 2004 at 10:08 UTC

    You need to this from the "Visual Studio .NET Command Prompt"

    That is simply wrong. You don't, it works just fine off the cmd.exe command line, all you have to do is set the PATH, LIB, INCLUDE env vars as detailed above. See here for example of running it off the normal command line.

    cheers

    tachyon

      all you have to do is set the PATH, LIB, INCLUDE env vars as detailed above

      Er, precisely, and what is the easiest way of doing this in the correct way for the configuration of the system? Oh yes, using the "Visual Studio .NET Command Prompt" which runs a handy little batch file that does all that stuff for you. I don't see any sense where that is "wrong" at all. In retrospect perhaps I should have replaced "need" with "will find this easier if". *shrug*

      /J\