threads

Tells the linker to search for unresolved references in a multithreaded run-time library.

IDE Equivalent

None

Architectures

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

Syntax

Linux: -threads
-nothreads
Windows:  /threads
/nothreads

Arguments

None

Default

Intel EM64T systems: ON
IA-32 and Intel Itanium systems: OFF
On IA-32 and Intel Itanium systems, the linker does not search for unresolved references in a mutithreaded run-time library. On Intel EM64T systems, it does.

Description

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

Alternate Options

None

See Also

Building Applications: Programming with Mixed Languages Overview