Share via


/FORCE   (Force File Output)

OverviewHow Do ILinker Options

Syntax

/FORCE:{MULTIPLE|UNRESOLVED}

This 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.

On the command line, 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.

A file created with this option may not run as expected. The linker will not link incrementally when the /FORCE option is specified.

To find this option in the development environment, click Settings on the Project menu. Then click the Link tab, and click Customize in the Category box.