threads

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

IDE Equivalent

None

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux and Mac OS X: -threads
-nothreads
Windows:  /threads
/nothreads

Arguments

None

Default

Systems using Intel® 64 architecture: threads
Systems using IA-32 architecture and IA-64 architecture: nothreads
On systems using IA-32 architecture and IA-64 architecture, the linker does not search for unresolved references in a mutithreaded run-time library. On systems using Intel® 64 architectures, 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