/V (Version Number)
Deprecated. Embeds a text string in the .obj file.
/Vstring
string
A string specifying the version number or copyright notice to be embedded in an .obj file.
The stringcan 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 comment (C/C++) with the compiler comment-type argument to place the name and version number of the compiler in the .obj file.
The /V option is deprecated beginning in Visual Studio 2005; /V was primarily used to support building virtual device drivers (VxDs), and building VxDs is no longer supported by the Visual C++ toolset. For a list of deprecated compiler options, see Deprecated and Removed Compiler Options in Compiler Options Listed by Category.
Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
Select the Configuration Properties > C/C++ > Command Line property page.
Enter the compiler option in the Additional Options box.
- See AdditionalOptions.