http://llvm.org/bugs/show_bug.cgi?id=19150

            Bug ID: 19150
           Summary: clang-cl: Building <string> with multithreaded
                    run-time gives link errors
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

$ cat test.cc
#include <string>
int main()
{
}

$ clang-cl -MD -GR- -D_HAS_EXCEPTIONS=0  test.cc
test-2f8590.obj : error LNK2019: unresolved external symbol "public: static
class std::locale::id std::ctype<char>::id" (?id@?$ctype@D@std@@2V0locale@2@A)
referenced in function "class std::ctype<char> const & __cdecl
std::use_facet<class std::ctype<char> >(class std::locale const &)"
(??$use_facet@V?$ctype@D@std@@@std@@YAABV?$ctype@D@0@ABVlocale@0@@Z)
test-2f8590.obj : error LNK2019: unresolved external symbol "public: static
class std::locale::id std::ctype<wchar_t>::id"
(?id@?$ctype@_W@std@@2V0locale@2@A) referenced in function "class
std::ctype<wchar_t> const & __cdecl std::use_facet<class std::ctype<wchar_t>
>(class std::locale const &)"
(??$use_facet@V?$ctype@_W@std@@@std@@YAABV?$ctype@_W@0@ABVlocale@0@@Z)
test-2f8590.obj : error LNK2019: unresolved external symbol "private: static
int std::locale::id::_Id_cnt" (?_Id_cnt@id@locale@std@@0HA) referenced in
function
"public: __thiscall std::locale::id::operator unsigned int(void)"
(??Bid@locale@std@@QAEIXZ)
test.exe : fatal error LNK1120: 3 unresolved externals
clang-cl.exe: error: linker command failed with exit code 1120 (use -v to see
in
vocation)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to