Intel® Fortran Compiler XE 13.1 User and Reference Guides

libs

Tells the compiler which type of run-time library to link to.

IDE Equivalent

Windows: Libraries > Runtime Library (/libs:{dll|qwin|qwins}, /threads, /dbglibs)

Linux: None

OS X: None

Architectures

All

Syntax

Linux and OS X:

None

Windows:

/libs[:keyword]

Arguments

keyword

Specifies the type of run-time library to link to. Possible values are:

dll

Specifies a multithreaded, dynamic-link (DLL) library.

qwin

Specifies the Fortran QuickWin library.

qwins

Specifies the Fortran Standard Graphics library.

Default

/libs

The compiler links to a multithreaded library.

Description

This option tells the compiler which type of run-time library to link to.

There are several types of libraries you can link to, depending on which compiler options you specify, as shown in the table below.

If you use the /libs:dll option and an unresolved reference is found in the DLL, it gets resolved when the program is executed, during program loading, reducing executable program size.

If you use the /libs:qwin or /libs:qwins option with the /dll option, the compiler issues a warning.

You cannot use the /libs:qwin option and options /libs:dll /threads.

The following table shows which options to specify for different run-time libraries:

Type of Library

Options Required

Alternate Option

Multithreaded static

/libs (or /threads)

/MT

Debug multithreaded static

/libs (or /threads)

and /dbglibs

/MTd

Multithreaded DLLs

/libs:dll

/MD

Multithreaded debug DLLs

/libs:dll and

/dbglibs

/MDd

Fortran QuickWin multi-doc applications

/libs:qwin

/MW

Fortran standard graphics (QuickWin single-doc) applications

/libs:qwins

/MWs

Debug Fortran QuickWin multi-doc applications

/libs:qwin

/dbglibs

None

Debug Fortran standard graphics (QuickWin single-doc) applications

/libs:qwins

/dbglibs

None

Note

Starting with the 13.0 release of the Intel compilers, the Intel® OpenMP* library is provided in DLL form only.

Alternate Options

/libs

Linux and OS X: -threads

Windows: /threads

/libs:dll

Linux and OS X: None

Windows: /MD

/libs:qwin

Linux and OS X: None

Windows: /MW

/libs:qwins

Linux and OS X: None

Windows: /MWs

See Also


Submit feedback on this help topic