<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - _LIBCPP_DEBUG=1 causes link error"
href="https://bugs.llvm.org/show_bug.cgi?id=47052">47052</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>_LIBCPP_DEBUG=1 causes link error
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jbulow-llvm@jongel.net
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>This program: (err1.cpp)
#include <vector>
int
main()
{
std::vector<int> v;
return 0;
}
Compiled with:
clang++ -stdlib=libc++ -D_LIBCPP_DEBUG=1 -o err1 err1.cpp
Results in:
/tmp/err1-babb29.o: In function `void
std::__1::__libcpp_db::__insert_c<std::__1::vector<int,
std::__1::allocator<int> > >(std::__1::vector<int, std::__1::allocator<int>
<span class="quote">>*)':</span >
err1.cpp:(.text._ZNSt3__111__libcpp_db10__insert_cINS_6vectorIiNS_9allocatorIiEEEEEEvPT_[_ZNSt3__111__libcpp_db10__insert_cINS_6vectorIiNS_9allocatorIiEEEEEEvPT_]+0x26):
undefined reference to `std::__1::__libcpp_db::__insert_c(void*,
std::__1::__c_node* (*)(void*, void*, std::__1::__c_node*))'
clang-12: error: linker command failed with exit code 1 (use -v to see
invocation)
Makefile:5: recipe for target 'err1' failed
make: *** [err1] Error 1
make: Target 'all' not remade because of errors.</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>