/V (Version Number)
- A string specifying the version number or copyright notice to be embedded in an .obj file.
This option embeds a text string in the .obj file. This string can label an .obj file with a version number or a copyright notice. Any space or tab characters must be enclosed in double quotation marks (") if they are a part of the string. A backslash (\) must precede any double quotation marks if they are a part of the string. A space between /V and string is optional.
You can also use #pragma comment with the compiler comment-type argument to place the name and version number of the compiler in the .obj file.
To set this compiler option in the Visual Studio development environment
- Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
- Click the C/C++ folder.
- Click the Command Line property page.
- Type the compiler option in the Additional Options box.
To set this compiler option programmatically