Prevent cl.exe from printing the compiled source f

2019-06-15 02:27发布

问题:

I use the MS compiler from the command line (VS 2008), and whenever it compiles one source file, it prints the compiled source file. Is there a way to avoid this useless print ?

回答1:

There's no way to suppress that message with a switch (see also this thread).



回答2:

It sounds like you're using the /E switch which prints the source to the std output after it's run through the preprocessor.