Oracle Solaris Studio 12.2:C++ 用户指南

警告

为了确保正确的库链接顺序,必须使用 -mt(而不是 -lthread)与 libthread 链接。