libdir

Controls whether linker options for search libraries are included in object files generated by the compiler.

IDE Equivalent

Windows:
Libraries > Disable Default Library Search Rules
(/libdir:[no]automatic)
Libraries > Disable OBJCOMMENT Library Name in Object
(/libdir:[no]user)
Linux: None

Architectures

IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux: None
Windows:  /libdir[:keyword]
/nolibdir

Arguments

keyword     Specifies the linker search options. Possible values are:
  none Prevents any linker search options from being included into the object file. This is the same as specifying /nolibdir.
  [no]automatic Determines whether linker search options for libraries automatically determined by the ifort command driver (default libraries) are included in the object file.

 

[no]user Determines whether linker search options for libraries specified by the OBJCOMMENT source directives are included in the object file.

 

all Causes linker search options for the following libraries:
  • Libraries automatically determined by the ifort command driver (default libraries)

  • Libraries specified by the OBJCOMMENT directive to be included in the object file

This is the same as specifying /libdir.

Default

/libdir:all Linker search options for libraries automatically determined by the ifort command driver (default libraries) and libraries specified by the OBJCOMMENT directive are included in the object file.

Description

This option controls whether linker options for search libraries (/DEFAULTLIB:library) are included in object files generated by the compiler.

The linker option /DEFAULTLIB:library adds one library to the list of libraries that the linker searches when resolving references. A library specified with /DEFAULTLIB:library is searched after libraries specified on the command line and before default libraries named in .obj files.

Alternate Options

/libdir:none Linux: None
Windows: /Zl