[LLVMbugs] [Bug 24165] New: Link error when using regex with clang-cl
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jul 17 09:11:06 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: russell.wallace at gmail.com
CC: llvmbugs at cs.uiuc.edu
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 at D@std@@0QBU?$_Cl_names at D@2 at 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 at _W@std@@0QBU?$_Cl_names at _W@2 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150717/bb5756c4/attachment.html>
More information about the llvm-bugs
mailing list