/FORCE (Force File Output)
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
Right-click on the project in Solution Explorer and choose Properties.
Click the Linker folder.
Click the Command Line property page.
Type the option into the Additional Options box.
For more information, see Set C++ compiler and build properties in Visual Studio.
To set this linker option programmatically
- See AdditionalOptions.
Submit and view feedback for