IlsSwTable > Compiler Options for Multithreaded Applications Compiler Options for Multithreaded Applications
The following table shows the compiler or compiler/linker options that must be used to build a multithreaded application. Failure to use these options will result in undefined behavior at runtime.
Compiler Options for Multithreaded Applications
Port | Compilation | Link | Macros |
alpha_5.1_6.5 | -pthread | -pthread | _REENTRANT |
hp32_11_3.73 | -D | -lpthread | _REENTRANT _THREAD_SAFE |
x86_.net2003_7.1 | /MD | | _MD |
x86_.net2005_8.0 | /MD | | _MD |
x86_.net2008_9.0 | /MD | | _MD |
x86_RHEL4.0_3.4 | -pthread | -lpthread -ldl | |
ultrasparc32_8_6.2 | -mt | | |
ultrasparc64_8_6.2 | -mt | -mt | _REENTRANT |
Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.