description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: /INCLUDE (Force Symbol References) |
/INCLUDE (Force Symbol References) |
11/04/2016 |
|
|
4a039677-360a-480f-bd0b-448e239b449c |
/INCLUDE:symbol
symbol
Specifies a symbol to be added to the symbol table.
The /INCLUDE option tells the linker to add a specified symbol to the symbol table.
To specify multiple symbols, type a comma (,), a semicolon (;), or a space between the symbol names. On the command line, specify /INCLUDE:symbol
once for each symbol.
The linker resolves symbol
by adding the object that contains the symbol definition to the program. This feature is useful for including a library object that otherwise would not be linked to the program.
Specifying a symbol with this option overrides the removal of that symbol by /OPT:REF.
-
Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
-
Select the Configuration Properties > Linker > Input property page.
-
Modify the Force Symbol References property.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.ForceSymbolReferences%2A.