[LLVMbugs] [Bug 18256] New: Using clang-cl Error linking with std::locale problem

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Dec 15 13:04:44 PST 2013


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

            Bug ID: 18256
           Summary: Using clang-cl Error linking with std::locale problem
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eldlistmailingz at tropicsoft.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Atempting to link an executable while testing Boost libraries with clang-cl I
am seeing this error in a number of situations:

clang-win.link
..\..\..\bin.v2\libs\vmd\test\test_begin_identifier.test\clang-vc11-win-3.4\debug\test_begin_identifier.exe
test_begin_identifier.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_begin_identifier.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_begin_identifier.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_begin_identifier.obj : error LNK2019: unresolved external symbol "void
__cdecl std::_DebugHeapDelete<void>(void *)"
(??$_DebugHeapDelete at X@std@@YAXPAX at Z) referenced in function "private: void
__thiscall std::numpunct<wchar_t>::_Tidy(void)"
(?_Tidy@?$numpunct at _W@std@@AAEXXZ)

The command line for clang-cl has these options:

-TP /Od /Ob0 /W3 /GR /MDd  /Zc:forScope /Zc:wchar_t -fmsc-version=1700 /wd4675
/EHs /D_HAS_EXCEPTIONS=0 /GR- -c

-- 
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/20131215/9d13d0f5/attachment.html>


More information about the llvm-bugs mailing list