<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Using clang-cl Error linking with std::locale problem"
   href="http://llvm.org/bugs/show_bug.cgi?id=18256">18256</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Using clang-cl Error linking with std::locale problem
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows XP
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>eldlistmailingz@tropicsoft.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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@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_begin_identifier.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>
<span class="quote">>(class std::locale const &)"</span >
(??$use_facet@V?$ctype@_W@std@@@std@@YAABV?$ctype@_W@0@ABVlocale@0@@Z)
test_begin_identifier.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_begin_identifier.obj : error LNK2019: unresolved external symbol "void
__cdecl std::_DebugHeapDelete<void>(void *)"
(??$_DebugHeapDelete@X@std@@YAXPAX@Z) referenced in function "private: void
__thiscall std::numpunct<wchar_t>::_Tidy(void)"
(?_Tidy@?$numpunct@_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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>