Share via


/NODEFAULTLIB   (Ignore Libraries)

OverviewHow Do ILinker Options

Syntax

/NODEFAULTLIB[:library]

This option tells the linker to remove one or more default libraries from the list of libraries it searches when resolving external references.

Command Line Project Settings Description
/NODEFAULTLIB:library Ignore Libraries This option removes the specified library or libraries from the list of libraries it searches when resolving external references.
/NODEFAULTLIB Ignore All Default Libraries This option removes all default libraries from the list of libraries it searches when resolving external references.

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

The linker resolves references to external definitions by searching first in libraries specified in the Object/Library Modules text box in the Project Settings dialog box (or on the command line), then in default libraries specified with the /DEFAULTLIB option, and then in default libraries named in .OBJ files.

To specify multiple libraries, type a comma (,) between the library names.

The Ignore Libraries (/NODEFAULTLIB:library) option overrides /DEFAULTLIB:library when the same library name is specified in both.