https://llvm.org/bugs/show_bug.cgi?id=24165

            Bug ID: 24165
           Summary: Link error when using regex with clang-cl
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

When compiling the regular expression example program at
http://www.cplusplus.com/reference/regex/regex_match/ clang-cl gives the
following error message:

libcpmt.lib(xthrow.obj) : error LNK2005: "private: static struct
std::_Cl_names<char> const * const std::_Regex_traits<char>::_Names"
(?_Names@?$_Regex_traits@D@std@@0QBU?$_Cl_names@D@2@B) already def
ined in a1-bec557.obj
libcpmt.lib(xthrow.obj) : error LNK2005: "private: static struct
std::_Cl_names<wchar_t> const * const std::_Regex_traits<wchar_t>::_Names"
(?_Names@?$_Regex_traits@_W@std@@0QBU?$_Cl_names@_W@2@B) alr
eady defined in a1-bec557.obj
a1.exe : fatal error LNK1169: one or more multiply defined symbols found
clang-cl.exe: error: linker command failed with exit code 1169 (use -v to see
invocation)

-- 
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