/NODEFAULTLIB

Syntax:

/NODEFAULTLIB[:library]

Tells the linker to remove all default libraries from the list of libraries it searches when resolving external references. If you specify library, the linker only ignores the libraries you have named. To specify multiple libraries, type a comma (,) between the library names.

The linker resolves references to external definitions by searching first in libraries specified on the command line, then in default libraries specified with the /DEFAULTLIB option, then in default libraries named in object files.

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

To select this in the visual development environment, select the Ignore Libraries or Ignore All Default Libraries check box in the Input category of the Link tab in the Project Settings dialog box.