[LLVMbugs] [Bug 19150] New: clang-cl: Building <string> with multithreaded run-time gives link errors

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 15 12:02:56 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: jmuizelaar at mozilla.com
                CC: llvmbugs at cs.uiuc.edu
    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 at D@std@@2V0locale at 2@A)
referenced in function "class std::ctype<char> const & __cdecl
std::use_facet<class std::ctype<char> >(class std::locale const &)"
(??$use_facet at V?$ctype at D@std@@@std@@YAABV?$ctype at D@0 at ABVlocale@0@@Z)
test-2f8590.obj : error LNK2019: unresolved external symbol "public: static
class std::locale::id std::ctype<wchar_t>::id"
(?id@?$ctype at _W@std@@2V0locale at 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 at V?$ctype at _W@std@@@std@@YAABV?$ctype at _W@0 at ABVlocale@0@@Z)
test-2f8590.obj : error LNK2019: unresolved external symbol "private: static
int std::locale::id::_Id_cnt" (?_Id_cnt at id@locale at std@@0HA) referenced in
function
"public: __thiscall std::locale::id::operator unsigned int(void)"
(??Bid at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140315/4c60b706/attachment.html>


More information about the llvm-bugs mailing list