/FORCE (Force File Output)


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at -FORCE (Force File Output).


## Remarks  
 The /FORCE option tells the linker to create a valid .exe file or DLL even if a symbol is referenced but not defined or is multiply defined.  
 The /FORCE option can take an optional argument:  
-   Use /FORCE:MULTIPLE to create an output file whether or not LINK finds more than one definition for a symbol.  
-   Use /FORCE:UNRESOLVED to create an output file whether or not LINK finds an undefined symbol. /FORCE:UNRESOLVED is ignored if the entry point symbol is unresolved.  
 /FORCE with no arguments implies both multiple and unresolved.  
 A file created with this option may not run as expected. The linker will not link incrementally when the /FORCE option is specified.  
 If a module is compiled with **/clr**, **/FORCE** will not create an image.  
### To set this linker option in the Visual Studio development environment  
1.  Open the project's **Property Pages** dialog box. For details, see [Setting Visual C++ Project Properties](../Topic/Working%20with%20Project%20Properties.md).  
2.  Click the **Linker** folder.  
3.  Click the **Command Line** property page.  
4.  Type the option into the **Additional Options** box.  
### To set this linker option programmatically  
-   See [AdditionalOptions](assetId:///P:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.AdditionalOptions?qualifyHint=False&autoUpgrade=True).  
## See Also  
 [Setting Linker Options](../Topic/Setting%20Linker%20Options.md)   
 [Linker Options](../Topic/Linker%20Options.md)