Intel® Fortran Compiler 16.0 User and Reference Guide
Tells the linker to search for unresolved references in a multithreaded run-time library.
Linux and OS X: | -threads -nothreads |
Windows: | /threads /nothreads |
None
Windows* OS: threads |
The linker searches for unresolved references in a library that supports enabling thread-safe operation when the /reentrancy:threaded option is also specified. |
Linux* OS and OS X*: nothreads |
The linker searches for unresolved references in a library that does not support thread-safe operation. |
This option tells the linker to search for unresolved references in a multithreaded run-time library.
This option sets option reentrancy threaded.
Windows systems: The following table shows which options to specify for a multithreaded run-time library.
Type of Library |
Options Required |
Alternate Option |
---|---|---|
Multithreaded |
/libs:static /threads |
/MT |
Debug multithreaded |
/libs:static /threads /dbglibs |
/MTd |
Multithreaded DLLs |
/libs:dll /threads |
/MD |
Multithreaded debug DLLs |
/libs:dll /threads /dbglibs |
/MDd |
To ensure that a threadsafe and/or reentrant run-time library is linked and correctly initialized, option threads should also be used for the link step and for the compilation of the main routine.
On Windows* OS, this option is processed by the compiler, which adds directives to the compiled object file that are processed by the linker. On Linux* OS and OS X*, this option is processed by the ifort command that initiates linking, adding library names explicitly to the link command.
None