Visual Studio (2005/2008/2010) appears to create a response file containing flags for the C/C++ compiler, cl.exe. As soon as开发者_如何学编程 compilation finishes, the response file is deleted.
Is there a way to force Visual Studio not to delete the response file? Is there some other way to view the contents of the response file?
You can set the compiler option "Suppress Startup Banner" to "No". This will print out the compiler's options.
Another way to get the content of the file is by suspending the cl
process while it is running (for example using Process Explorer). Then you have time to look at the response file.
精彩评论