- 1 year ago
MSVC - do not display compiler version/copyright information
Comment
1 / 1
To suppress the display of the MSVC (Microsoft Visual C++) compiler version and copyright information during compilation, you can use the /nologo
option. This option tells the compiler not to display the logo and other version information.
Here's how you can use the /nologo
option with MSVC:
Command Line:
When invoking the compiler from the command line, include the/nologo
option as follows:bashcl /nologo your_source_code.cpp
Visual Studio:
If you're using Visual Studio, you can configure the/nologo
option in the project settings:- Right-click on the project in the Solution Explorer and select "Properties".
- In the "Configuration Properties", go to "C/C++" -> "Command Line".
- Add
/nologo
to the "Additional Options" field. - Click "Apply" or "OK" to save the changes.
By using the /nologo
option, you can suppress the display of the compiler version and copyright information during compilation, resulting in a cleaner output.